title: open a jquery dialog on a LinkButton click
body: <p>I want to open a dialog in an itemtemplate field of a gridview. </p>
  
  <p>I have a linkbutton on my page and I want to open a jquery dialog when the linkbutton is clicked.</p>
  
  <p>My code is:</p>
  
  <pre><code>&lt;head&gt;
      &lt;script type="text/javascript"&gt;
  
      $(document).ready(function(){
      $('#LinkButton1').click(function(){
  
      $('#dialog').dialog({modal:true});
      });
      });
      &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;asp:LinkButton ID="LinkButton1" runat="server"&gt;LinkButton&lt;/asp:LinkButton&gt;
      &lt;div id="dialog"&gt;
          ABid ALi
      &lt;/div&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Why is what I am doing not working?</p>