Mike,

Thanks for clearInputs. Did you resolve the bug in resetForm?

-- Yehuda

On 1/3/07, Mike Alsup <[EMAIL PROTECTED]> wrote:

The latest version of the form plugin has some new features that you
may not be aware of.

New Functions:
resetForm, clearForm and clearInputs

// invokes the form's native 'reset' method
$('#myForm').resetForm();

// clears all (appropriate) fields in the form
$('#myForm').clearForm();

// clears matched fields
$('.myStuff').clearInputs();


New Options for ajaxSubmit and ajaxForm:
resetForm, clearForm

// resets form after successful server response
$('#myForm').ajaxForm({ resetForm: true });

// clears form after successful server response
$('#myForm').ajaxForm({ clearForm: true });


As always, the latest form plugin can be found at:

http://jquery.com/dev/svn/trunk/plugins/form/form.js?format=txt

Full documentation can be found in the source file.

Mike

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




--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to