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
Add hidden reset button as follows
// Call reset buttons click event // Similar to ClearInputs('resetBtn'); function ClearInputs(btnSelector) { var btn = $("#" + btnSelector); btn.click(); }