form表单点击后验证

function check(){

var customertype = document.getElementById("customertype");
//alert(customertype.value);
if(customertype.value == 0){
alert("没有输入客户关系度!");
customertype.focus();
return false;
}
return true;
}

 <form method="post" action="__URL__" onsubmit="return check()">

</form>

posted on   liuwenbohhh  阅读(227)  评论(0编辑  收藏  举报

努力加载评论中...
点击右上角即可分享
微信分享提示