Resetting a multi-stage form with jQuery

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

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


Trouble i

30条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 01:17

    Clearing forms is a bit tricky and not as simple as it looks.

    Suggest you use the jQuery form plugin and use its clearForm or resetForm functionality. It takes care of most of the corner cases.

提交回复
热议问题