Click here to Skip to main content
14,641,269 members
Rate this:
Please Sign up or sign in to vote.
See more:

I use login form in bootstrap dropdown.

<ul class="dropdown-menu" id="dropdown-login" style="width:350px;">
                               <div class="block-heading">Sign In</div>
                               <div class="block-body">
                                   <asp:Label ID="Label1" runat="server" Text="Invalid UserName and Password!!" Visible="false" Font-Bold="True" ForeColor="Red"></asp:Label>
                                   <label>Emial ID</label>
                                   <asp:TextBox ID="txtEmailID" CssClass="span4" runat="server"></asp:TextBox>
                                   <asp:TextBox ID="txtPassword" TextMode="Password" CssClass="span4" runat="server"></asp:TextBox>
                                  <asp:Button ID="btnLogin" CssClass="btn btn-primary pull-right" runat="server" OnClick="btnLogin_Click" Text="Sign In" />
                                   <label class="remember-me"><input type="checkbox"> Remember me</label>
                                   <p><a href="#Forgot" >Forgot your password?</a></p>
                                   <div class="clearfix"></div>

i use javascript as below to click problem in textbox.

<script type="text/javascript">
        $(function () {
            // Setup drop down menu

            // Fix input element click problem
            $('.dropdown input, .dropdown label,').click(function (e) {


But when i click on btnLogin then login form is closed.

pls help to solve this problem


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100