How to disable all <input > inside a form with jQuery?

后端 未结 8 1395
感动是毒
感动是毒 2021-01-29 22:35
....
8条回答
  •  情话喂你
    2021-01-29 23:05

    With this one line you can disable any input field in a form

    $('form *').prop('disabled', true);
    

提交回复
热议问题