0
我有一个jQuery插件,允许用户选择表格中的单元格,我称之为插件cellSelect。 cellSelect有2种选择:jQuery插件自定义事件
$('table#tableid').cellSelect({
select: function(){
// Run when a cell is selected
},
deselect: function(){
// Run when a cell is deselected
}
});
我需要创建一个可以这样运行事件:
$('td').eq(15).select();
$('td').eq(15).deselect();
这也将运行在插件选项
你的意思是这样的'$(本).bind( '选择',函数(){ \t \t \t \t \t \t \t \t options.selected; \t \t \t \t \t \t \t}); ' –
是的,你可以试试。 – ShankarSangoli