$("#myElement").change(function() {
this.form.submit();
});
Every form element has a "form" property which contains a reference to the form that element is contained in.
--Aaron
On 8/7/06, John Resig <[EMAIL PROTECTED]> wrote:
> $("#myForm").change(function() {
> $(this).submit() /* is this correct? */
> })
It would actually be:
$("#myForm").change(function(){
this.submit();
});
since 'this' refers to the form, it's ok just to call the submit
function right on it.
--John
_______________________________________________
jQuery mailing list
[EMAIL PROTECTED]
http://jquery.com/discuss/
_______________________________________________ jQuery mailing list [EMAIL PROTECTED] http://jquery.com/discuss/
