jquery - Keep datatable search results displayed -
i keep previous datatable searches displayed after new search performed. using code below datatable filtered display current search.
$('#filterbox').keyup(function() { if (this.value.length > 7) { equipmenttable.search(this.value).draw(); $('#equipment').show(); } });
basically want stack datatable searches, there way this?
i thought creating new datatable hold searched items, populating each time search performed.
var searchedrow = equipmenttable.search(this.value).row( { filter : 'applied' } ).data();
not sure if best way go however.
Comments
Post a Comment