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
Post a Comment