範例:
$('#dialog input[name=lalala]').bind('keypress', function(e){
var code = (e.keyCode ? e.keyCode : e.which);
if(code == 13) { //Enter鍵的 keycode
do_something(); //某函數
}
});