using javascript with server controls
<p>I am trying to use javascript with server controls.</p>

<p>Aim<br>
To make my panel visible on mouseover event of text box(asp control)</p>

<p>Problem areas<br>
new to javascript and asp.net.<br>
getting javascript errors at run time<br>
went thru all possible solutions from different forums but not able to customize them    accordingly.</p>

<p>The code runs on this ASP.NET Control</p>

<pre><code>&lt;asp:TextBox ID="TextBox1" runat="server" 
      ontextchanged="TextBox1_TextChanged" 
      onmouseover="enablepanel()" 
      Width="76px" 
      Text="--SELECT--"&gt;
&lt;/asp:TextBox&gt;
</code></pre>

<p>Tried these scripts</p>

<pre><code>function enablepanel(sender, target) {
    document.getElementById(target).removeAttribute("disabled");
}

function enablepanel() {
    var id = $get("&lt;%=Panel1.ClientID %&gt;");
    if (id != null) id.disabled = false;
    $get("#&lt;%= ButtonSave.ClientID%&gt;").removeAttr("disabled");
    var controls = document.getElementById("&lt;%=Panel1.ClientID%&gt;");
    controls.disabled = false;
}

function enablepanel() {
    document.getElementById(div1).disabled = "false";
}
</code></pre>

<p>Its not working.</p>

<p>Request<br>
if possible try to make it simple as we call functions in html when we use javascript otherwise just go with the solution.</p>
