【发布时间】:2013-05-29 00:43:26
【问题描述】:
我在这样的表上使用可选择的 jQuery...
var body=$("<tbody class='selectable'></tbody>")
body.selectable({
filter: 'td:not(:first-child)'
});
// this is the first column which is filteres out of the selectable
$(".first-col").on('click',function(e){
console.log("click for first column is here");
});
我希望第一列具有不同的回调函数,但永远不会调用对第一列的单击。是否有可能做到这一点?我做错了什么?
感谢您的帮助 V
【问题讨论】:
-
为什么不能将点击事件附加到'.selectable'?
标签: jquery jquery-ui-selectable