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
Most easy and best solution is- $("#form")[0].reset();
$("#form")[0].reset();
Don't use here - $(this)[0].reset();
$(this)[0].reset();