Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

enter event in jquery

$('#textbox').keypress(function(event){
	var keycode = (event.keyCode ? event.keyCode : event.which);
	if(keycode == '13'){
		alert('You pressed a "enter" key in textbox');
	}
});
 
PREVIOUS NEXT
Tagged: #enter #event #jquery
ADD COMMENT
Topic
Name
7+8 =