Jörn Zaefferer schrieb:
>>> For radios/checkboxes: Can we rely on searching for siblings? Or do we
>> need to search for the name inside the current form?
>>
>> No, we can't! There may be labels around it or divs/lis whatever in 
>> between... It should search for the name in the document!
> 
> But the document may contain other forms with the same name. I think the 
> .parents('form, body') approach works quite well: If there is a surrounding 
> form, that is used to search, otherwise it searches the entire document 
> (body).

Yes, you are right! Good stuff!

-- Klaus

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to