[jQuery] Re: loop through elements and stop at first match

2007-07-10 Thread Olivier Percebois-Garve
Thanks for your answers. An ordinary loop is what I need. The reason why I need this is because I want the extend Jake's textNodes plugin in order to highlight/animate a word made out of letters from a text. For instance for the word selector: Lorem ipsum dolor *s*it amet, consectetuer

[jQuery] Re: loop through elements and stop at first match

2007-07-09 Thread Rob Desbois
jQuery's in-built selectors with the custom selector ability should provide you with everything you need without having to loop through the array yourself. What are you trying to search for? On 7/9/07, Olivier Percebois-Garve [EMAIL PROTECTED] wrote: Hi I want to loop through the jquery array

[jQuery] Re: loop through elements and stop at first match

2007-07-09 Thread Andy Matthews
And what's the point of stopping the loop only to continue it again? _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rob Desbois Sent: Monday, July 09, 2007 8:57 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: loop through elements and stop at first

[jQuery] Re: loop through elements and stop at first match

2007-07-09 Thread Michael Geary
As Rob suggested, explore what you can do with the selectors available in jQuery. But if those don't do the trick, keep in mind that the jQuery result object is an array. If you want to do something unusual with it that isn't provided by the jQuery selectors, you can access the array elements