开发者

Datatables: Selecting their items

开发者 https://www.devze.com 2023-04-12 12:01 出处:网络
How can I select datatables items? I have tried stuff like: $(\"select\").change(function () { a开发者_运维百科lert(\'changed!\');

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

精彩评论

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