Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Show hidden search when pressing 'enter' key
- $('#toggleSearch').keypress(function (e) {
- var key = e.which;
- if(key == 13) // the enter key code
- {
- $('#searchDropdown').slideToggle();
- return false;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement