Mike,
Thanks for clearInputs. Did you resolve the bug in resetForm?
-- Yehuda
<div><span class="gmail_quote">On 1/3/07, <b class="gmail_sendername">Mike Alsup</b> <<a href="mailto:malsup@gmail.com">
malsup@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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:
<a href="http://jquery.com/dev/svn/trunk/plugins/form/form.js?format=txt">
http://jquery.com/dev/svn/trunk/plugins/form/form.js?format=txt</a>Full documentation can be found in the source file.
Mike
_______________________________________________
jQuery mailing list
<a href="mailto:discuss@jquery.com">
discuss@jquery.com</a>
<a href="http://jquery.com/discuss/">
http://jquery.com/discuss/</a></blockquote>
</div>
<br clear="all">
--
Yehuda Katz
Web Developer | Wycats Designs
(ph) 718.877.1325
_______________________________________________
jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/