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

后端 未结 8 1251
感动是毒
感动是毒 2021-01-29 22:35
....
8条回答
  •  野的像风
    2021-01-29 23:16

    Also the more concise way is to use their selectors engine. So to disable all form elements in a div or form parent.

    $myForm.find(':input:not(:disabled)').prop('disabled',true)
    

提交回复
热议问题