When the user click on the reset button of a form, the form will be reset to default values..
$(':reset').on('click', function(evt) {
evt.preventDefault()
$form = $(evt.target).closest('form')
$form[0].reset()
$form.find('select').selectpicker('render')
});
0 comments:
Post a Comment