I have a simple input text field:
<input type="text" name="filter" id="filter">
Then, to detect whether the field has been altered, I use:
var filter = Trim($(this).val().toLowerCase());
This works for all characters except delete.
How can I include this for delete etc.
I tried keydown, but the filter gives the result of the value of the text box before it was modified. I need to make sure that the above code is triggered when any data is deleted.
Many thanks in advance!