Skip to content

Instantly share code, notes, and snippets.

@insightcoder
Last active October 7, 2017 03:38
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 insightcoder/4ad9ef879b4d61ecccacfc15520a1b5b to your computer and use it in GitHub Desktop.
Save insightcoder/4ad9ef879b4d61ecccacfc15520a1b5b to your computer and use it in GitHub Desktop.
$(document).ready(function() {
$('#lookup')
.focus(function() {
$(this).select();
})
.keypress(function(e) {
if (e.which == 13) {
$("#submit")
.focus()
.click();
}
})
.select();
$("#submit")
.click(submit_lookup);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment