//按键弹起检查sn (10位)
<input type="text" name="sn" id = "sn" onkeyup="checkSnPress(this.value);">
function checkSnPress(v){
if(v == "" || $.trim(v).length < 10){
return false;
}
}
//按键弹起检查sn (10位)
<input type="text" name="sn" id = "sn" onkeyup="checkSnPress(this.value);">
function checkSnPress(v){
if(v == "" || $.trim(v).length < 10){
return false;
}
}