Hey there! any question in your mind? Ask It Now!.

Popular Categories





I am trying twitter bootstrap 2 top navigation dropdown with from but not working in mobile

+1 vote
149 views
asked in OTHER by raghav (960 points)

I'm using Twitter bootstrap 2.3.2 and included a form in the dropdown menu. 

Here is my part of code for the navigation menu

<li class="dropdown" id="menuLogin"> <a class="dropdown-toggle btn" href="login" data-toggle="dropdown" id="navLogin"><i class="icon-lock"></i> Login</a>

  <div class="dropdown-menu span3" style="background:#0C0;">

 <form method="post" action="<?php echo base_url().'login';?>" id="login>
 <div class="control-group">
  <input type="text" name="login_email" id="login_email" value="" placeholder="Email" class="span3" />  
<?php echo form_error('login_email')?>
            </div>
 <div class="control-group">
 <input type="password" name="login_password" id="login_password" value="" placeholder="password" class="span3"/> 
 <?php echo form_error('login_password')?>
        </div>
 <div class="control-group">
 <div class="text-left" style="padding-left:8px;">
 <input type="submit" class="btn" name="login" value="Login" style="background-color: #3498DB;" />
 <a href="<?php echo base_url().'forgot_password';?>">Forgot Password?</a>
                </div></div></form></div></li>

Ihave also tryed 

<script>
    $('.dropdown-menu input, .dropdown-menu button').on('click', function(e) {
        e.stopPropagation();
    });
</script>

 

Please log in or register to answer this question.

Related Questions

+4 votes
1 answer 628 views
+1 vote
2 answers 89 views
+5 votes
1 answer 65 views
asked in Programming by jatin Expert (3,823 points)
+1 vote
2 answers 5,424 views

Not a Member yet?

Ask to Folks Login

My Account
779 Folks are online
0 members and 779 guest online
Your feedback is highly appreciated