I looked at other issues similar to and many of them, but no one worked. Here is the problem: this is a mini login form for the top banner. I need the button to not close automatically when clicked in the fields. Here is my code:
<script> $(document).on('click', '.dropdown-menu', function(e){ $(this).hasClass('keep_open') && e.stopPropagation(); </script> <div class="btn-group" > <a class="btn btn-small btn-inverse dropdown-toggle" data-toggle="dropdown" href="#"> <i class="cus-key"></i> Login <span class="caret"></span> </a> <ul class="dropdown-menu pull-right keep_open"> <form action="clog.php" method="post" class="keep_open"> <li><input type="text" placeholder="Username..." class="keep_open" /></li> <li><input type="text" placeholder="Password..." class="keep_open"/></li> <li><input type="submit" name="submit" style="background-image: url('img/login.png'); width: 110px; height: 32px; cursor: hand; margin-top: -5px" value=" " /></li> <li><a href="/riders/register.php" ><span style="color: green; float: right" > Sign up for account<i class="icon-double-angle-right"></i></a></span></li> </form> </ul> </div>
login twitter-bootstrap
srt8driver Aug 19 '13 at 4:33 on 2013-08-19 04:33
source share