Resetting a multi-stage form with jQuery

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

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


Trouble i

30条回答
  •  不知归路
    2020-11-22 01:31

    Here with the refresh for checkboxes and selects:

    $('#frm').find('input:text, input:password, input:file, textarea').val('');
    $('#frm').find('input:radio, input:checkbox').attr("checked",false).checkboxradio("refresh");
    $('#frm').find('select').val('').selectmenu('refresh');
    

提交回复
热议问题