$(document).ready(function(){
document.onkeydown = function (event){
if (event.keyCode==13) //回車鍵的鍵值爲13
submit();
};
});post
function submit(){
var password = $("#password").val();
$("#password").val(password);
document.forms[0].submit();
}orm