jquery - How to get filtered nodes in Datatables -
i wish rows filtered on datatables:
$("#selectalllocations").click -> filtered = $("#restaurantlocations").datatable().fngetfilterednodes() filtered.$("tr").addclass "selected"
however, calling function calls errors as:
on line $("#restaurantlocations").datatable().fngetfilterednodes()
how can phone call function fngetfilterednodes() farther operation on?
i don't think can phone call jquery (or $)
method of jquery (or $)
... seek using 'find()' method instead, generically used filtering.
$("#selectalllocations").click -> filtered = $("#restaurantlocations").datatable().fngetfilterednodes() filtered.find("tr").addclass "selected"
jquery coffeescript jquery-datatables
No comments:
Post a Comment