Resetting a multi-stage form with jQuery

前端 未结 30 2006
谎友^
谎友^ 2020-11-22 00:58

I have a form with a standard reset button coded thusly:


Trouble i

30条回答
  •  礼貌的吻别
    2020-11-22 01:34

    Paolo's answer doesn't account for date pickers, add this in:

    $form.find('input[type="date"]').val('');
    

提交回复
热议问题