[jQuery] Re: Question about :contains filter

2008-09-06 Thread kara swisher
sarah palin http://www.gpirate.com/search?q=sarah+palin On Sat, Sep 6, 2008 at 11:32 AM, Ca-Phun Ung <[EMAIL PROTECTED]> wrote: > > nabrown78 wrote: > > Thanks Ca-Phun Ung, I tried your suggestion, as you're quite right the > > apostrophe I was using before was the wrong one. But no luck! I tried

[jQuery] Re: Question about :contains filter

2008-09-06 Thread nabrown78
Well, this proved an intractable problem - something relating to encoding that was over my head. I found a work-around though, using filter to find the list items containing "ladies" and "short-sleeve" thus leaving out the darn apostrophe altogether: $("li:contains(ladies)

[jQuery] Re: Question about :contains filter

2008-09-06 Thread Ca-Phun Ung
nabrown78 wrote: > Thanks Ca-Phun Ung, I tried your suggestion, as you're quite right the > apostrophe I was using before was the wrong one. But no luck! I tried > this: > $("li:contains(ladies’ short-sleeve > tee)").addClass("selected"); > > You need to wrap the text str

[jQuery] Re: Question about :contains filter

2008-09-06 Thread nabrown78
Thanks Ca-Phun Ung, I tried your suggestion, as you're quite right the apostrophe I was using before was the wrong one. But no luck! I tried this: $("li:contains(ladies’ short-sleeve tee)").addClass("selected"); If I change the source to just "ladies' short-sleeve tee" an

[jQuery] Re: Question about :contains filter

2008-09-05 Thread Ca-Phun Ung
nabrown78 wrote: > I am trying to select a list element that contains the text > "ladies’ short-sleeve tee". I have tried > > $("li:contains(ladies' short-sleeve tee)").addClass("selected"); > $("li:contains('ladies\' short-sleeve tee')").addClass("selected"); > $("li:contains(ladies’ short-sleeve