Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to send enter event to input field jquery

var e = jQuery.Event("keydown");
e.which = 13; //choose the one you want
e.keyCode = 13;
$("#theInputToTest").trigger(e);
 
PREVIOUS NEXT
Tagged: #send #enter #event #input #field #jquery
ADD COMMENT
Topic
Name
6+8 =