> say i have an input, how can i reach its containing form element ?

Hi Alexandre,

All form elements have a 'form' property so if you have a ref to the
input element you can just do this:

var form = myInput.form;

Or to use jQuery:

var form = $('#myInput')[0].form;

Mike

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to