Tag:clear get reg phone number var else html div box
Mobile phone number verification: var Myreg =/^ ((13[0-9]{1}) | ( 14[0-9]{1}) | (15[0-9]{1}) | (17[0-9]{1}) | (18[0-9]{1})) +\D{8}) $/; //minus one var Intervalobj; var curCount=60; per second function SendMessage () { intervalobj= Window.setinterval (setremaintime,1000); } function SetRemainTime ( ) { if (curcount==0) { window.clearinterval (intervalobj); $ (". Zhanghaobox1 a"). CSS ("Color", "#ff8702"), $ (". Zhanghaobox1 span"). CSS ("Border", " 1px solid #ff8702 "); $ (" #yanzhengma "). Children (). HTML ("Get Verification Code"); }else{ curcount--; $ (". Zhanghaobox1 a"). CSS ("Color", "# 999999 "); $ (". Zhanghaobox1 span "). CSS (" Border "," 1px solid #999999 "); $ ("#yanzhengma"). Children (). HTML ("Resend (" +curcount+ ")"); } }
About the phone, send the verification code, regular