A simple knockout binding to enable / disable input elements.
Install with bower
:
bower install knockout.lock
<div data-bind="lock: true">
<!-- These inputs will be locked -->
<input type="text"/>
<input type="button" value="Update">
<!-- Don't disable this input -->
<input text="true" data-lock-exclude="true"/>
<!-- Don't disable any inputs within this container -->
<div data-lock-exclude="true">
<input type="text"/>
</div>
</div>
Available via the MIT license.