高分求解! 在线等 你就先判断if(obj.value == "" || value == "" ){ alert("没有输入!"); return false;} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script>var errTextBox = null;function chkvalue(obj, value){ if(obj.value != ""){ }else{ alert("没有输入"); return false; } if (obj.value != value) { if (!errTextBox || errTextBox == obj) { errTextBox = obj; alert("输入错误!"); obj.focus(); } } else { if (errTextBox == obj) errTextBox = null }}</script> this.value在IE里获得为空 急!急!急! 求一个用JS做的 可以按名字排序 等排序的 JQuery取值问题?? 急!jQuery拖拽中的问题:怎么对有相同id的div绑定拖拽? 问题,如果实现在一个页面检查用户名 如何在java代码中引用php代码中的变量??? 急!急!急!!!!! 如何写一个tree view? 关于四舍五入 小白不懂 新手求助 还是响应鼠标单击与双击的问题,求助各位了? 请大侠指点。不胜感激!!!想让客户端显示时,一个div朦在一个表格的一个<td></td>上,该如何实现呢?
var errTextBox = null;
function chkvalue(obj, value)
{
if(obj.value != ""){
}else{
alert("没有输入");
return false;
}
if (obj.value != value) {
if (!errTextBox || errTextBox == obj) {
errTextBox = obj;
alert("输入错误!");
obj.focus();
}
} else {
if (errTextBox == obj) errTextBox = null
}
}
</script>