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
$(document).ready(function() { $('#reset').click(function() { $('#compose_form').find("input[type=text] , textarea ").each(function() { $(this).val(''); }); }); });