showing results for - "set form empty jquery"
Luigi
23 Feb 2018
1$('#formId')[0].reset();
2OR 
3// For jQuery 1.6+:
4$(':input','#formId')
5  .not(':button, :submit, :reset, :hidden')
6  .val('')
7  .prop('checked', false)
8  .prop('selected', false);
9
10// For jQuery < 1.6:
11$(':input','#formId')
12  .not(':button, :submit, :reset, :hidden')
13  .val('')
14  .removeAttr('checked')
15  .removeAttr('selected');