[jQuery] Re: problems using variables instead of text with :contains()

2007-12-01 Thread Wizzud
This is basic javascript string manipulation, not jQuery. Below is a very (very) quick precis of strings in javascript. It may help, it may not. A string is defined by it's surrounding quotes, be they (paired) single or double. You can concatenate strings by using the + operator. A string can be

[jQuery] Re: problems using variables instead of text with :contains()

2007-11-30 Thread [EMAIL PROTECTED]
I've just recently figured out a way to use this: You can do as follows: var name = whatever; $('#someid:contains('+name+')'); Should work (just tried it myself) Cheers, David On Nov 12, 11:12 pm, jeff <[EMAIL PROTECTED]> wrote: > I am a little confused on the syntax for :contains. I want t