Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!
I use bootstrap Button dropdown menus :

XML
<div class="btn-group">
  <button class="btn btn-mini" data-toggle="dropdown">Купить</button>
  <button class="btn btn-mini dropdown-toggle" data-toggle="dropdown">
    <span class="caret"></span>
  </button>
  <div class="dropdown-menu">
    <li><input type="checkbox" name=""/> <span>Купить</span></li>
    <li><input type="checkbox" name=""/> <span>Снять</span></li>
  </div>
</div>


When i click to "Купить" i get opened menu, and how to forbid close this opening menu after select?
Posted
Comments
[no name] 23-Apr-13 13:10pm    
I find code:
function clearMenus() {
$(toggle).each(function () {
getParent($(this)).removeClass('open')//this is line for remove css style after click
})
}

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900