<form action="" method="post" onsubmit="return check()"></form>
function check() {
var usercode = $("#usercode").val();
var password = $("#password").val();
if (usercode == "" || password == "") {
$("#message").text("账号或密码不能为空!");
return false;
}
return true;
}