Enable/Disable jquery toggle and asp panel
<p>I am working on creating a control that will enable/disable a section of an aspx page when clicking a button. I found a code snippet in jquery that will do this for all values but I want to restrict the lock/edit portion to an asp Panel.</p>

<p>1) Is this possible?</p>

<p>2) How do I change the jquery code to only toggle the fields within Panel1?</p>

<p>I am very new to Jquery.</p>

<p>Thank you for any and all future guidance!</p>

<pre class="lang-cs prettyprint-override"><code>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangeControl3.aspx.cs" Inherits="Test_ChangeControl3" %&gt;

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml" &gt;
&lt;head&gt;
&lt;meta charset=utf-8 /&gt;
&lt;title&gt;Test Lock/Edit Control&lt;/title&gt;
&lt;link type="text/css" rel="Stylesheet"href="http://ajax.microsoft.com/ajax/jquery.ui/1.8.5/themes/redmond/jquery-ui.css" /&gt;
&lt;script type="text/javascript" 
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;
&lt;/script&gt;

&lt;script type="text/javascript"&gt;
   $(document).ready(function(){
    $("#btnEnableDisable").toggle(function() {

    $("*").attr("disabled", "disabled"); 
     $(this).attr("disabled", ""); 
    }, function() {
     $("*").attr("disabled", ""); 

     });
   });

&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;form runat="server"&gt;
&lt;asp:Panel ID="Panel1" runat="server"&gt;
&lt;div&gt;
 &lt;asp:Label runat="server" ID="lblFname" Text="First Name:" &gt;&lt;/asp:Label&gt;
 &lt;asp:TextBox runat="server" ID="fname"&gt;&lt;/asp:TextBox&gt;
&lt;/div&gt;
&lt;div&gt;
 &lt;asp:Label runat="server" ID="lblLname" Text="Last Name:"&gt;&lt;/asp:Label&gt;
 &lt;asp:TextBox runat="server" ID="lname"&gt;&lt;/asp:TextBox&gt;
&lt;/div&gt;
&lt;div&gt;
 &lt;asp:Label runat="server" ID="lblCompany" Text="Company:" &gt;&lt;/asp:Label&gt;
 &lt;asp:TextBox runat="server" ID="cname"&gt;&lt;/asp:TextBox&gt;
&lt;/div&gt;
&lt;/asp:Panel&gt;  
  &lt;br /&gt;
   &lt;asp:Button runat="server" id="btnEnableDisable" Text="Lock/Edit" /&gt;
  &lt;br /&gt;

  &lt;input type="checkbox" name="qrentown" value="Do you own a home?" /&gt; Do you own a home?&lt;br /&gt;&lt;br/&gt;
   &lt;select name="rentown"&gt;
   &lt;option value="own"&gt;Own&lt;/option&gt;
   &lt;option value="rent"&gt;Rent&lt;/option&gt;
   &lt;option value="none"&gt;N/A&lt;/option&gt;
  &lt;/select&gt;&lt;br/&gt;
  &lt;input readonly="readonly" value="Describe your living situation"/&gt;&lt;br /&gt;
  &lt;textarea rows="3" cols="40" &gt; &lt;/textarea&gt;
  &lt;br/&gt;&lt;br/&gt;


&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
