Resetting a multi-stage form with jQuery

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

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


Trouble i

30条回答
  •  囚心锁ツ
    2020-11-22 01:17

    Consider using the validation plugin - it's great! And reseting form is simple:

    var validator = $("#myform").validate();
    validator.resetForm();
    

提交回复
热议问题