[jQuery] Re: :contains( I WANT TO USE A VALUE HERE NOT A STRING ) well the value is a string

2008-04-30 Thread Hamish Campbell
What? jQuery can't handle gross js syntax errors? Piffle & rot! :-p On May 1, 1:21 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > $('ul#list_container a:contains(' + hidden_div' + )') > > Hey Hamish, > > Looks like you switched a quote and a plus around. Should be: > > $('ul#list_container a:c

[jQuery] Re: :contains( I WANT TO USE A VALUE HERE NOT A STRING ) well the value is a string

2008-04-30 Thread Wes Duff
Yea saw that thanks guys. I found the answer right after I sent this out. Should have looked first. Thanks for the response though. On Apr 30, 8:21 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote: > > $('ul#list_container a:contains(' + hidden_div' + )') > > Hey Hamish, > > Looks like you switched a

[jQuery] Re: :contains( I WANT TO USE A VALUE HERE NOT A STRING ) well the value is a string

2008-04-30 Thread Karl Swedberg
$('ul#list_container a:contains(' + hidden_div' + )') Hey Hamish, Looks like you switched a quote and a plus around. Should be: $('ul#list_container a:contains(' + hidden_div + ')') Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 30, 2008

[jQuery] Re: :contains( I WANT TO USE A VALUE HERE NOT A STRING ) well the value is a string

2008-04-30 Thread Hamish Campbell
First of all, in this: $('ul#list_container a:contains(hidden_div)') The word 'hidden_div' is just a string literal - ie it's just looking for the word hidden_div. If you want to look for the text you've assigned to the _variable_ hidden_div you just need to go: $('ul#list_container a:contains(