【发布时间】:2023-03-21 05:04:01
【问题描述】:
将焦点 onload 设置到 jQuery Handsontable 中的第一个字段的正确方法是什么?
这里是示例链接http://jsfiddle.net/4kvMq/4/
$(function () {
$(window).load(function () {
$('#example10grid table tbody tr td:first-child').focus();
});
});
甚至尝试过手动设置焦点但没有成功!
$('#btnGo').click(function() {
$(".dataTable table tbody tr td:first-child").focus();
});
非常感谢!
【问题讨论】:
标签: javascript jquery events onload handsontable