$(document).ready(function () {
$("#input").keypress(function (e) {
if (e.which == 13) {
showArticles(); // 실행할 이벤트
}
});
});
출처는 SawEarl님의 블로그입니다.