使用客户端脚本设置tabindex [英] setting tabindex using client scripting

查看:79
本文介绍了使用客户端脚本设置tabindex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在网站中tabindex的维护不正确.
是否可以通过使用单个脚本(JavaScript或j查询)为所有页面提供正确的tabindex ,否则我必须手动为所有页面更改tabindex.

请帮忙.

In a web site tabindex is not maintained properly.
Is it possible to give proper tabindex for all the page by using a single script(JavaScript or j query) Otherwise I have to change tabindex for all pages manually.

Please help.

推荐答案

我从jquery网站上获得了不错的解决方案.它工作正常.
I have got nice solution from jquery website.Its working fine.


(function(){ var tabindex = 1 ;
(function(){ var tabindex = 1;


(' 输入,选择').each(function(){ 如果(this.type!= " span>){ var
('input,select').each(function() { if (this.type != "hidden") { var


这篇关于使用客户端脚本设置tabindex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆