how to Enable/Disable asp panel and children using jquery
<p>I created this jquery to Enable/Disable child Form Elements inside the asp.net panel this script will enable edit form but it will not Disable it after i click for second time can someone help me ?  </p>

<pre><code> &lt;script type="text/javascript"&gt;
        $(function () {
            //createing toggle
            $("#check").button();

            $("[id$='check']").data('isenabled', true); //enabled assumption
            //disabled all input form 
            $("[id$=p_taskInfo]").children().prop("disabled", "disabled");
            $("input[name='check']").click(function () {
                var curruntState = $(this).data('isenabled');
                if (curruntState) {
                    $("[id$=p_taskInfo]").children().removeProp("disabled");

                }
                else {
                    $("[id$=p_taskInfo]").children().prop("disabled", "disabled");
                }
                $(this).data('isenabled', !currentState);
            }); //EOF click function 
        });//EOF fucntion 
    &lt;/script&gt;
</code></pre>
