[jQuery] Re: [attribute=value]

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

[jQuery] Re: [attribute=value]

2009-08-15 Thread Stephan Beal
On Aug 15, 4:19 pm, Geir wrote: > This is fromhttp://docs.jquery.com/Selectors/attributeEquals#attributevalue: > >      Variables can be used using the following syntax: [name='" +MyVar > + "'] > << > > Is it right? > I can't seem to get it work properly.. Does MyVar contain any quotes or other

[jQuery] Re: [attribute=value]

2009-08-15 Thread MorningZ
Why not show what code doesn't work properly? That would be of help to show the correct way to do it On Aug 15, 10:19 am, Geir wrote: > This is fromhttp://docs.jquery.com/Selectors/attributeEquals#attributevalue: > >      Variables can be used using the following syntax: [name='" +MyVar > + "']