Search Filter to be placed outside datatable..
Search Filter to be placed outside datatable..
Svidhya
Posts: 4Questions: 0Answers: 0
Search Filter to be placed outside datatable, as there is a customized buttons to be added to it at the same div.. Is there any way to do this?
This discussion has been closed.
Replies
Yep, you can just move the element with jQuery - something like this,
Colin
thanks for the update @colin.. I have did like below and working fine
<input type="text" class="form-control" id="myInputTextField" placeholder="Search">
$(document).on('keyup', '#myInputTextField', function () {
table.search($(this).val()).draw();
});
May be both will be helpful..
Now i have another issue, need to move pagination, show entries and info outside of datatable.. similar to whatever will did for above search.. i am still searching for it.. It would be helpful if anyone whoever knows or resolved it can post their solution...
You can use the method I posted before, but change the element to be moved...
Colin
perfect.. Thanks a lot @colin