$(document).ready(function(){
document.onkeydown = function (event){
if (event.keyCode==13) //回车键的键值为13
submit();
};
});
function submit(){
var password = $("#password").val();
$("#password").val(password);
document.forms[0].submit();
}