<asp:Button ID="Button3" runat="server" Text="添加收藏" onclick="Button3_Click" OnClientClick="return CheckNull();"/><input type="text" class="txt" id="txtName" onclick="showNameMessage();" maxlength="8" onblur="checkName(this);" runat="server" />
function CheckNull() {
if (document.getElementById("txtName").value == "") {
alert("标题不能为空");
return false;
}
return true;
}
function CheckNull() {
if (document.getElementById("txtName").value == "") {
alert("标题不能为空");
return false;
}
return true;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货