我的 jQGrid 保留一个值为 1 的 tabindex!我想将其更改为 -1 或删除它。我该怎么做?谢谢朋友。
这是我的网格的来源,当 jQGrid 呈现它时:
我的 jQGrid 保留一个值为 1 的 tabindex!我想将其更改为 -1 或删除它。我该怎么做?谢谢朋友。
这是我的网格的来源,当 jQGrid 呈现它时:
尝试这个:
$('#list_allprices').attr('tabindex','-1');
Late but sure, here is my answer:
I couldn't find an option to specifically set the tabIndex through the jqgrid element but I was able to iterate over all the elements I was interested about to set them to ignore the tab (by setting the tabindex = -1).
I did the following:
function ignoreTabs(){
$('.HeaderButton').each(function(i, obj) {
obj.tabIndex = -1;
});
}
In the example above I look for all the elments with class HeaderButton and set the value tabIndex = -1. For your example Amin Sh, you should replace '.HeaderButton' by '#list_allprices'.
Of course call the function ignoreTabs when your page is loading.
Hope it helps.