Serch in real time
Serch in real time
Hello, I want to do a realtime search of only column 0 of table var table = "total". I want to do a real-time search of the column "canal"
I tried some of this
$("#total thead").on("keyup", function () {
table.columns(0).search(this.value).draw();
});
html
<div>
<label class="ml-5 mt-3 font-weight-bold">Filtro por canal: <label class="lastDate font-weight-normal"
id="lblDate"><input class="serch" type="text">
</div>
This discussion has been closed.
Replies
Looks like you need to change the jQuery selector
$("#total thead")
to match the input you want to use like this$("#lblDate").on("keyup", function () {
.If you still need help please provide a test case so we can help debug.
Kevin
Thanks