Skip to content

Instantly share code, notes, and snippets.

@CTimmerman
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CTimmerman/740f06fba1ba3ecdfdd5 to your computer and use it in GitHub Desktop.
Save CTimmerman/740f06fba1ba3ecdfdd5 to your computer and use it in GitHub Desktop.
jQuery table filter trigger for IE10.
$(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