Answered by : adventurous-alligator-inpliidfbzvn
$('#form_id').trigger("reset");
Source : https://stackoverflow.com/questions/16452699/how-to-reset-a-form-using-jquery-with-reset-method | Last Update : Fri, 03 Jul 20
Answered by : henry-petersen
$('.login-form').trigger("reset");
Source : | Last Update : Wed, 20 May 20
Answered by : nitesh-jangid
$('#form_id')[0].reset();
Source : | Last Update : Sat, 11 Sep 21
Answered by : foolish-fox-2k0brf1s0u6m
<script type="text/javascript">
if (window.jQuery) { jQuery(function ($) { $("form#myForm").ResetFormFields(); }
}
</script>
Source : http://webdesigncolors.navayan.com/jquery-plugin-reset-form-fields/ | Last Update : Fri, 20 Aug 21
Answered by : testy-tuatara-cal5h08ftqp5
$('yourdiv').find('form')[0].reset();
Source : https://stackoverflow.com/questions/6364289/clear-form-fields-with-jquery | Last Update : Sat, 11 Sep 21
Answered by : amin-arjmand
$(formIDOrClassName)[0].reset();
Source : | Last Update : Thu, 23 Jun 22
Answered by : tayyba-bashir
//reset form
$("#mybutton").click(function(){ $("#myform").find('input:text, input:password, input:file, select, textarea').val(''); $("#myform").find('input:radio, input:checkbox').removeAttr('checked').removeAttr('selected');
});
Source : https://stackoverflow.com/questions/16452699/how-to-reset-a-form-using-jquery-with-reset-method/16453099 | Last Update : Mon, 21 Mar 22
Answered by : selfish-seahorse-6j72603p73uk
<td><input type="reset" id="configreset" value="Reset"></td>
Source : https://stackoverflow.com/questions/16452699/how-to-reset-a-form-using-jquery-with-reset-method | Last Update : Fri, 16 Apr 21