Serch in real time

Serch in real time

Coder102Coder102 Posts: 78Questions: 2Answers: 0
edited October 2020 in Free community support

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>

Replies

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    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

  • Coder102Coder102 Posts: 78Questions: 2Answers: 0

    Thanks

This discussion has been closed.