<form id="target">
....
</form>
views:
372answers:
1
+6
A:
Use:
$("#target :input").attr("disabled", true);
to disable all form elements inside 'target'. See :input
:
Matches all input, textarea, select and button elements.
If you only want the <input>
elements:
$("#target input").attr("disabled", true);
cletus
2009-09-13 05:06:47
Nice!
RSolberg
2009-09-13 05:22:13