Disabling controls within a table - JQuery/Javascript
<p>I have a complex UI with several nested tables, a repeater control and several other HTML controls that have their disable attribute set based on business logic in JQuery.</p>

<p>I need a way to disable the entire table (including nested controls, UI elements etc) and re-enable them when a user toggles a button. </p>

<p>I could iterate through the controls, find each of them and apply the "disable" attribute, but when the user chooses to enable, I will need to go through the trouble of checking if each of the control was initially enabled or not (based on the business logic as explained in para 1)</p>

<p>All I need is a way to leave the initial UI alone and overlay the disable/enable functionality on the UI.</p>

<p>Is there a easy way of accomplishing this?</p>
