Jquery dialog open/close -
i'm trying create model dialog in jquery. button open dialog. opens closes it. never tell close when click button opens , closes. idea why?
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script> <script src="http://code.jquery.com/ui/1.8.21/jquery-ui.min.js" type="text/javascript"></script> <script src="http://jquery-ui. googlecode.com/svn/tags/latest/external/jquery. bgiframe-2.1.2.js" type="text/javascript"></script> <script src="http://jquery-ui. googlecode.com/svn/tags/latest/ui/minified/i18n/jquery-ui-i18n.min.js" type="text/javascript"></script> <asp:button id="rejctbutton" runat="server" text="reject" /> <div id="rejectiondiv"> <h3> reason of rejection insurance claim </h3> <h4> email borrower reason rejection. </h4> <asp:label id="rejectlabel" runat="server" text="reason"></asp:label> <asp:textbox id="rejecttb" runat="server"></asp:textbox> </div> <script type="text/javascript"> $("#rejectiondiv").dialog({ autoopen: false, modal: true }) $("#rejctbutton") .button() .click(function () { $("#rejectiondiv").dialog("open"); }); </script> </form> </body> </html>
try $('#rejectiondiv').dialog('open');
Comments
Post a Comment