//如果是要,提交时候执行验证函数。function $(id){
return document.getElementById(id);
}
function checkForm(){
chkte($("phone"));
chkDiv($("bill"));
chkpo1($(postcode"));
}
return document.getElementById(id);
}
function checkForm(){
chkte($("phone"));
chkDiv($("bill"));
chkpo1($(postcode"));
}
function $(id){
return document.getElementById(id);
}
function checkForm(){
var phone = document.getElementById('phone').value;
if(phone==''){//条件自己控制,这里只是一个例子
alert('不能为空!');
return false;
} return ture;
}