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
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 class="control-group">
 <input type="password" name="login_password" id="login_password" value="" placeholder="password" class="span3"/> 
 <?php echo form_error('login_password')?>
 <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>

Ihave also tryed 

    $('.dropdown-menu input, .dropdown-menu button').on('click', function(e) {


Please log in or register to answer this question.

Related Questions

+4 votes
1 answer 708 views
+1 vote
2 answers 184 views
+5 votes
1 answer 130 views
+1 vote
2 answers 6,521 views

Not a Member yet?

Ask to Folks Login

My Account
269 Folks are online
1 members and 268 guest online
Your feedback is highly appreciated