<script type="text/javascript">
$(function(){
$("#phonetext").focus(function(){
$("#eml2").show().siblings().hide();
});
$("#phonetext").blur(function(){
var regu = /^(\d{3,4}-)?\d{7,8}(-\d{3,4})?$|(^0{0,1}(13[0-9]|15[0-9]|18[7-9])[0-9]{8}$)/
var re = new RegExp(regu);
if(eml==""){
$("#eml3").show().siblings().hide().end().children("span").text("此项为必填项");
}else if(re.test(eml)){
$("#eml1").show().siblings().hide();
}else{
$("#eml3").show().siblings().hide().end().children("span").text("请输入正确格式的手机号码");
}
});
});
</script>
<input type="text" name="cus.customersTelephone" id="phonetext" value="${cus.customersTelephone}" />
<div id="eml1" style="display:none"><img src="images/check_11.gif" width="14" height="14" /></div>
<div id="eml2" style="display:none"><img src="images/ganth.gif" width="14" height="14" align="absmiddle" /> <span class="hd">请输入手机号码,便于日后找回密码。</span></div>
<div id="eml3" style="display:none"><img src="images/hgt.gif" width="14" height="14" align="absmiddle" /> <span class="hd">请输入正确格式的手机号</span></div>