如何为onClick事件的辅助功能添加选项卡支持?

时间:2015-10-12 14:05:21

标签: javascript jquery html5 javascript-events

我的任务是让通知切换可以通过标签访问,以便于访问。谷歌搜索已经完全失败了。我怎么能做到这一点?

HTML:

<!-- Settings - Notifications -->
<div class="panel-body account-settings" ng-show="item == 3" ng-controller="noteSettingsController as note">
    <div class="row">
        <h4 class="text-center">Email</h4>
        <form class="form-horizontal">
            <div class="form-group" ng-repeat="(key, alert) in defs.email">
                <div class="row">
                    <label for="emailCritNotes" class="col-sm-2 control-label">{{alert.name}}</label>
                    <div class="col-sm-8">
                        {{alert.desc}}
                    </div>
                    <div class="col-sm-2">
                        <i class="fa" ng-click="toggleEmail(key)" ng-class="{'fa-toggle-on': alert.status, 'fa-toggle-off': !alert.status}"></i>
                    </div>
                </div>
            </div>
        </form>
    </div>

0 个答案:

没有答案