Resetting Column Filter isn't clearing Input Text

Resetting Column Filter isn't clearing Input Text

pcadypcady Posts: 4Questions: 2Answers: 0

Can someone take a look at this: https://jsfiddle.net/pcady/n2rb18ys/14/

Text Input filtering is enabled for the first two columns. Type in a value & rows are correctly filtered.

However, hit the Reset Filters button and, while the filter is cleared correctly, the Input Text is not cleared.

I was sure this was working fine at some point. No idea what I'm doing wrong here. Any ideas?

Thanks!

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,301Questions: 26Answers: 4,946
    Answer ✓

    You can add $('tfoot input').val(''); to clear the footer inputs. Updated your example:
    https://jsfiddle.net/2k07k5ba/2/

    Kevin

  • pcadypcady Posts: 4Questions: 2Answers: 0

    That's it!

    I googled till I couldn't google anymore and totally missed that. I put your answer in and, of course, many hits.

    Thanks, Kevin.

    -Paul

This discussion has been closed.