Last active
August 29, 2015 14:15
-
-
Save CTimmerman/740f06fba1ba3ecdfdd5 to your computer and use it in GitHub Desktop.
jQuery table filter trigger for IE10.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
$('#filter').on("keyup", filter) | |
// Too slow? Wait for enter: | |
//$('#filter').on('change', filter); | |
// Help IE10 because it doesn't trigger change until field loses focus. | |
//$('#filter').on('keydown', function(event){if(event.which == 13) $(this).change()}) | |
$('#filter').on("mouseup", function(){setTimeout(filter, 50)}) // Wait for IE10 to clear input. | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment