I would like to detect whether the user has pressed Enter using jQuery.
How is this possible? Does it require a plugin?
EDIT: It looks like I need
$(function(){ $('.modal-content').keypress(function(e){ debugger var id = this.children[2].children[0].id; if(e.which == 13) { e.preventDefault(); $("#"+id).click(); } }) });