How to lock/unlock HTML element with Jquery on certain condition?
<p>I can better explain it with Raw script.<br/></p>

<pre><code>&lt;script&gt;
    $(document).ready(function () {
        $("Div").  //lock div here

        var condition=$("#value").val();
        if(condition==true){unlock div here}
        else{do nothing}
    });
&lt;/script&gt;
</code></pre>

<p>Is there any jquery widget i have to include?</p>

<p>By saying lock/unlock I mean Enable/Disable.</p>
