Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get key pressed jquery

//Console log any key pressed into an input field with the class "topSearch"
$(".topSearch").keyup(function (e) {
  console.log(e.key);
});
 
PREVIOUS NEXT
Tagged: #key #pressed #jquery
ADD COMMENT
Topic
Name
4+5 =