开发者

Datatables: Selecting their items

How can I select datatables items? I have tried stuff like:

$("select").change(function () {
a开发者_运维百科lert('changed!');
});

but I see no results. I also tried by name but I cannot interact with these elements. I would like to interact directly with the select and the search box.

Thank you!


Try wraping it in $(document).ready function,

$(document).ready(function(){
  $("select").live('change',function () {
    alert('changed!');
    });
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜