jquery - pagination from filtered search -
i doing search in jquery:
$('#maincontent_mytable tr:gt(0)').each(function () { $(this).find('td:eq(0)').not(':contains(' + filterval + ')').parent().hide(); }); i'd able quick pagination (without plugin) rows remain in table above find.
what best way this?
just attach 1 example , include search before call:
showpage = function(page) { $(".content").hide(); $(".content").each(function(n) { if (n >= pagesize * (page - 1) && n < pagesize * page) $(this).show(); }); }
Comments
Post a Comment