Alex Rivera | Logout

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

Asked 2009-09-13T05:05:24.190
165
<form id="target">
....
</form>
Edit
Report

1 Answer

18

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)
answered 2011-07-12T20:00:03.773

Your Answer