[jQuery] Re: Filter (attribute, value)

2009-08-15 Thread Geir
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!

[jQuery] Re: Filter (attribute, value)

2009-08-15 Thread Geir
Finally.. I got it working :) It was getting the quotes right.. Solution: $('#Navigation li a[href='+relPath+']') Thanks!

[jQuery] Re: Filter (attribute, value)

2009-08-15 Thread Carlos Becar
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 --

[jQuery] Re: Filter (attribute, value)

2009-08-14 Thread Wolf
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 $

[jQuery] Re: Filter (attribute, value)

2009-08-14 Thread Carlos Becar
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

[jQuery] Re: Filter (attribute, value)

2009-08-14 Thread Geir
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