<form id="loginForm" method="post" action="">
<table id="loginareacenter" cellpadding="0" cellspacing="0" border="0">
<tr><th>用户名:</th><td><input type="text" id="username" name="username" value="" class="width200"/></td></tr>
<tr><th>密码:</th><td><input type="password" id ="password" name="password" value="" class="width200"/></td></tr>
<tr><th>验证码:</th><td><input type="text" id ="vdcode" name="vdcode" value="" class="width200"/> <img align="absmiddle" src="/vdimgck.php" alt="看不清?点击更换" style="cursor: pointer;" onclick="this.src=this.src+'?'" id="vdimgck"> <a class="seenot" onclick="changeCode();return false;" href="javascript:void(0);">看不清? </a></td></tr>
</table>
</form>
$("#loginForm").keydown(function(e){
if(e.keyCode == 13){
$("#loginForm").submit();
}
});