[jQuery] Re: contains() not working

2008-09-26 Thread JQueryProgrammer
Thanks a ton. Although I had another way to do it like: if($(imgID).attr("src").indexOf("expand") >= 0) but using the way you mentioned is more accurate and specific to JQuery. Thanks once again. On Sep 26, 2:27 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > contains is a pseudo-selector,

[jQuery] Re: contains() not working

2008-09-26 Thread Richard D. Worth
contains is a pseudo-selector, but not a method. So you can use it like this: html before: the quick brown fox jumped over the lazy dog script: $("p:contains('the')").remove(); html after: fox jumped over That doesn't really help in the scenario you've posed because contains searches the text o