The DOM way:
$('#input')[0].form;
jQuery ways (depending on your markup structure):
$('#input').parents('form');
$('#input').parent('form');
m.
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexandre
Plennevaux
Sent: Wednesday, February 07, 2007 4:47 PM
To: 'jQuery Discussion.'
Subject: [jQuery] question about selectors
A quick question:
say i have an input, how can i reach its containing form element ?
thanks :)
alexandre
--
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.441 / Base de données virus: 268.17.29/673 - Date: 6/02/2007 17:52
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/