Created
February 6, 2018 20:33
-
-
Save rsmelo92/5b047f15c979432428cd0c2d965a6074 to your computer and use it in GitHub Desktop.
form enter key event
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
$(‘form’).on(‘submit’, (event)=>{ | |
event.preventDefault(); | |
// Do what you want here | |
// In this case get input value | |
// Do a search | |
// Redirect to results page | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment