js正则表达式验证大全(收集)
发布时间:2016-11-28 09:17:54  所属栏目:大数据  来源:站长网 
            导读:引用网址nbsp; http://hi.baidu.com/quiteuniverse/blog/item/9f3f043d46ad1e07bba16716.html 以下函数调用方式:nbsp;nbsp;nbsp; function check() { var bb = document.getElementById("txt_id").value;//txt_id为文本框的ID alert(ismobile(bb));//ismo
                
                
                
            | nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; 已选择 
function checkElement_selected(item,alert_str) { 
if(item.type=="select-one")return checkElement_NotNull(item,alert_str); 
if(alert_str.length==0)alert_str=item.title+"为必选项!";
 rt=false; if(item.lengthgt;0) { for(i=0;ilt;item.length;i++)
{
rt=rt||item[i].checked;
} } 
else 
{ 
rt=item.checked } return checkBoolean(rt,item[0],alert_str); return true;
 }(编辑:我爱故事小小网_铜陵站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! | 


 浙公网安备 33038102330570号
 浙公网安备 33038102330570号