Resetting a multi-stage form with jQuery

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

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


Trouble i

30条回答
  •  迷失自我
    2020-11-22 01:38

    I used the solution below and it worked for me (mixing traditional javascript with jQuery)

    $("#myformId").submit(function() {
        comand="window.document."+$(this).attr('name')+".reset()";
        setTimeout("eval(comando)",4000);
    })
    

提交回复
热议问题