Monday, May 26, 2014

textbox show using jquery

1) <asp:Label ID="lblpassword" runat="server" Text="Shekhar123"></asp:Label>
                    <input id="txtpassword" type="text" style="display: none;">
                    <a id="changepassword" href="javascript:hi();">Change Password</a>

2) <script type="text/javascript" language="javascript">
        function hi() {
            var txtPassword = $("[id*=txtpassword]");
            txtPassword.show();
        }
    </script>

No comments:

Post a Comment