from what i know, the closest is using the 'each' method.. like:
$("form")
.children()
.each(function() {
$(this).val("");
});
or something close to that. hope that helps
[g]
On 12/28/06, Andy Matthews <[EMAIL PROTECTED]> wrote:
I'm going to be submitting a form via AJAX and I'd like to be able to
clear
all of the fields afterwards. I could obviously do it by referencing each
field manually, but I'm wondering if it's possible to do something like
this:
$('#myForm').clearFields();
or something to that effect. I just want to reset all fields to their
original values. Is this possible using jQuery, without having to do each
field individually?
<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/