tags:

views:

372

answers:

1
<form id="target">
....
</form>
+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
Nice!
RSolberg