title: How to disable and enable Delete button if checkbox is not checked in GridView by Jquery?
body: <p>I want to disable and enable Delete button if checkbox is not checked in GridView by Jquery?
  This is my code which doesn't work.</p>
  
  <p>Please help me in a simple way because I am a new developer!</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
                      $(document).ready(function () {
  
                         $('#&lt;%=GridView1.ClientID %&gt;').find('input[Id*="CheckBox1"]:checkbox').click(function() {
                             if  (this.checked ==true) 
                             {
                                 $('[id$="Button2"]').attr('disabled',false);
  
                             }
                             else
                             {
                                 $('[id$="Button2"]').attr('disabled',true);
                             }
                         })
                     });
          &lt;/script&gt;
  </code></pre>