Imagine you have a form where you switch visibility of several fields. And if the field is not displayed you don\'t want its value to be in request.
How do you handl
If you wanna disable all elements or certain elements within a hidden parent element, you can use
$("div").filter(":hidden").children("input[type='text']").attr("disabled", "disabled");
This example http://jsfiddle.net/gKsTS/ disables all textboxes within a hidden div