open a jquery dialog on a LinkButton click

Voroavoisse

New Member
I actually want to open a dialog in an itemtemplate field of a gridview. but first i\[code\]m keeping it simple. the thing i\[/code\]m doing is i have a linkbutton on my page and i want to open a jquery dialog on click of the linkbutton,my code is:\[code\]<head> <script type="text/javascript"> $(document).ready(function(){ $('#LinkButton1').click(function(){ $('#dialog').dialog({modal:true}); }); }); </script></head><body> <form id="form1" runat="server"> <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton> <div id="dialog"> ABid ALi </div> </form></body>\[/code\]I dont know what mistakes i`m doing.. Please Correct me.
 
Back
Top