Resetting a multi-stage form with jQuery

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

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


Trouble i

30条回答
  •  鱼传尺愫
    2020-11-22 01:15

    All these answers are good but the absolute easiest way of doing it is with a fake reset, that is you use a link and a reset button.

    Just add some CSS to hide your real reset button.

    input[type=reset] { visibility:hidden; height:0; padding:0;}
    

    And then on your link you add as follows

    Reset form
    
    
    

    Hope this helps! A.

提交回复
热议问题