function checklogin(the) { if($.trim(the.username.value)=="") { $.message({content:"\u8d26\u6237\u4e0d\u80fd\u4e3a\u7a7a"}); the.username.focus(); return false } if($.trim(the.password.value)=="") { $.message({content:"\u5bc6\u7801\u4e0d\u80fd\u4e3a\u7a7a"}); the.password.focus(); return false } if($.trim(the.yzm.value)=="") { $.message({content:"验证码不能为空"}); the.yzm.focus(); return false } var id = ; if($.trim(the.yzm.value)!=id) { $.message({content:"验证码错误"}); the.yzm.focus(); return false } } $(function(){ $("#onlinepay .ip").focus(function(){$(this).removeClass();$(this).addClass('ipon');}); $("#onlinepay .ip").blur(function(){$(this).removeClass();$(this).addClass('ip')}); })