javascript - Focus on bootstrap dropdown -


i using bootstrap dropdown, want focus on dropdown can use keyboard navigate on list. way using jquery? tried use $('#myulid').focus() , not working.

i able open dropdown, not focus on it.

        <button id="time_btn" type="button"                 class="btn btn-reverse dropdown-toggle"                 data-toggle="dropdown">             </button>             <ul class="dropdown-menu" role="menu">                 <li ng-repeat="item in items" ><a><span>test</span></a></li>         </ul> 

just add

<ul  tabindex='1'> .... </ul> 

then add .focus() method


Comments

Popular posts from this blog

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -