Tuesday, April 29, 2014

Open Jquery Popup on a tag

 <link type="text/css" rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    <script type="text/javascript">
        function ShowPopup() {

            $("#dialog-modal").dialog({

                title: "Change Default Password For Client",
                height: 230,
                width: 400,
                buttons: {
                    Close: function () {
                        $(this).dialog('close');
                    }
                },
                modal: true
            });
        };      
    </script>



 <div id="dialog-modal" title="Basic modal dialog" style="display: none;">
        <asp:TextBox ID="txtclientdefaultpassword" runat="server"></asp:TextBox>
        <asp:Button ID="btnchangepassword" runat="server" Text="Change Password" UseSubmitBehavior="false" />
    </div>

No comments:

Post a Comment