You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
341 B
17 lines
341 B
function checkName(){
|
|
var flag = true;
|
|
var name = $("#username").val().replace("/\s*/g","");
|
|
//alert(name);
|
|
if(name.length==0){
|
|
$("tr td:eq(2)").html("用户名不能为空!");
|
|
flag = false;
|
|
}
|
|
return flag;
|
|
}
|
|
|
|
$(function(){
|
|
$("#username").blur(checkName());
|
|
$("#username").focus(function(){
|
|
$("tr td:eq(2)").html("");
|
|
});
|
|
}); |