Thanks!
Finally.. I got it working :)
It was getting the quotes right..
My code: $('#Navigation li a[href="'+relPath+'"]')
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
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
> + "']
3 matches
Mail list logo