javascript - AngularJS make elements tabbable -


so have looks this:

'<div class="ui360-infosectionheader">' +     '<span ng-click="toggle()" class="ui360-infosectiontitle" ng-class="{\'ui360-expanded\':isexpanded, \'ui360-collapsed\':!isexpanded}">{{sectiontitle}}</span>' + '</div>' 

how can make when tab through page, span receives focus , can trigger ng-click using enter? able changing span 'a' tag , adding href="#" refreshing page not @ need. want avoid using tab index because directive placed anywhere on page. focus when it's supposed in relation other elements on page. how done?

use can use anchor tag instead of using href="#" use href="javascript:return false"


Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -