Clearing search boxes

Clearing search boxes

ChazzaChazza Posts: 10Questions: 4Answers: 0

Hi
I have followed the example for searching shown at

https://datatables.net/examples/api/multi_filter

It is working okay. I was wondering if there was a script example that would allow me to clear the search boxes to see all the records without having to clear each search box manually? Thank you in advance for your help
Regards
Chazza

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586
    Answer ✓

    You can use standard JS for that, something like:

    $('tfoot th input').val('');
    $('tfoot th input').trigger('keyup');
    

    Colin

  • ChazzaChazza Posts: 10Questions: 4Answers: 0

    Cheers Colin
    That did the trick!
    Regards
    Chazza

This discussion has been closed.