Thanks Ryan :handshake:

so  mySet.find(':text').each(...) would be right and 
$(mySet).find(':text').each(...) not? :confused:

In examples I often see (within an each function): $(this).something but
also this.something

Still dont get the difference of use :,(

G




ryan.joyce...@googlemail.com wrote:
> 
> 
> mySet is an object or variable, $(mySet) will try to get an element
> using the contents of mySet as the selector.
> 
> On Mar 5, 10:04 am, ggerri <gerald.ressm...@ewz.ch> wrote:
>> Hi there
>>
>> thats an easy one for you ;-)
>>
>> if i do:
>>
>> var mySet = $('tr>td:nth-child(2n)');
>>
>> how do I use mySet? What's the difference between
>>
>> mySet.find(':text')
>>
>> and
>>
>> $(mySet).find(':text')
>>
>> Thanks :-))
>> GGerri
>>
>> --
>> View this message in
>> context:http://www.nabble.com/Simple-one%3A-difference-between-varXy.find%28%...
>> Sent from the jQuery General Discussion mailing list archive at
>> Nabble.com.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Simple-one%3A-difference-between-varXy.find%28%27%3Atext%27%29-and-%24%28varXy%29.find%28%27%3Atext%27%29-tp22348597s27240p22350689.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to