title: How do Enable/Disable linkbutton in javascript?
body: <p>I have a link button in the page like:</p>
  
  <pre><code>&lt;asp:LinkButton ID="edit" runat="server" OnClick="edit_Click" Enabled="False"&gt;ویرایش&lt;/asp:LinkButton&gt;
  </code></pre>
  
  <p>I want Enable/Disable this in javascript.</p>
  
  <p>I use this code but set visible</p>
  
  <pre><code>var objedit = document.getElementById('&lt;%= edit.ClientID.ToString() %&gt;');
  objedit.style.display = "none";
  </code></pre>
  
  <p>I use this code but not enable </p>
  
  <pre><code>if (count == 1) {
      objedit.disabled = false;
  } else {
      objedit.disabled = true;
  }
  </code></pre>
  
  <p>I can click but link button is disabled.</p>
  
  <p><img src="https://i.stack.imgur.com/b3SaA.png" alt="enter image description here"></p>