enabling ASP.NET hyperlink using javascript
<p>I use VS2010,C# to develop my ASP.NET web app, I've created an asp.net hyperlink like this:</p>

<pre><code>&lt;asp:HyperLink ID="hpAccept" runat="server" Enabled="false" Target="_parent"&gt;Hyperlink&lt;/asp:HyperLink&gt;
</code></pre>

<p>as you can see I've defined it as enabled=false, so it is disabled at startup, I've defined a JavaScript function that should enable this hyperlink after a variable is set to true, but it doesn't work! what is my problem, it is my JS function:</p>

<pre><code>           function onRadioChange(rowIndex, value) {

.....
....
           if (all_ok) {
               document.getElementById('hpAccept').disabled = false;
           }
       }
</code></pre>

<p></p>

<p>my variable (all_ok) is set to true but the hyperlink is not enabled!</p>

<p>thanks</p>
