I want to clear all input and textarea fields in a form. It works like the following when using an input button with the reset class:
reset
$(\".reset
If you want to empty all input boxes irrespective of its type then it's a minute step by
$('#MyFormId')[0].reset();