disable all form elements inside div

Solution 1:

Try using the :input selector, along with a parent selector:

$("#parent-selector :input").attr("disabled", true);

Solution 2:

$('#mydiv').find('input, textarea, button, select').attr('disabled','disabled');

Solution 3:

For jquery 1.6+, use .prop() instead of .attr(),

$("#parent-selector :input").prop("disabled", true);

or

$("#parent-selector :input").attr("disabled", "disabled");