I have a form with a standard reset button coded thusly:
Trouble i
Modification of the most-voted answer for the $(document).ready()
situation:
$('button[type="reset"]').click(function(e) {
$form = $(this.form);
$form.find('input:text, input:password, input:file, select, textarea').val('');
$form.find('input:radio, input:checkbox').removeAttr('checked').removeAttr('selected');
e.preventDefault();
});