$(':input','#myform') .not(':button, :submit, :reset, :hidden') .val('') .removeAttr('checked') .removeAttr('selected');
If you use the jQuery Forms plugin, these functions are provided:
-resetForm
-clearForm
-clearFields
http://jquery.malsup.com/form/
Thanks