Ok,
seems like I misunderstood the way Firebug works.
It said the variable was undefined, but when I set the breakpoint on
the line under,
I got something :)
Sorry about that,
and thanks for the help!
Finally.. I got it working :)
It was getting the quotes right..
Solution: $('#Navigation li a[href='+relPath+']')
Thanks!
2009/8/15 Geir gso...@frisurf.no
Finally.. I got it working :)
It was getting the quotes right..
Solution: $('#Navigation li a[href='+relPath+']')
Thanks!
you welcome, but look between quotes and simple quotes because if are the
same you got a error you have to use toggle including
--
var path = var here = ;
path = http://mydomain.localhost'' || http://mydomain.com;;
var here = $(#Navigation li a[href='+Path+']);
href must contain simple quotes because you use double quotes in the
beginning, but if have different href you can use something like this $
var path = var here = ;
path = http://mydomain.localhost'' || http://mydomain.com;;
var here = $(#Navigation li a[href='+Path+']);
href must contain simple quotes because you use double quotes in the
beginning, but if have different href you can use something like this
Thanks!
Tried
var here = $(#Navigation li a[href='+Path+']);
and
var here = $(#Navigation li).$(a[href='+relPath+']); (Are
they totally equal?)
still gives me nothing.
I'm not very trained in javascript/jQuery but I thing you
misunderstood my line 1 and 2.
relPath is for the relative
6 matches
Mail list logo