Verification of mobile phone number (starting with 13 and starting with 158, 159, 11 digits in total)
var re;
var ss=document.getElementById('textbox3').value;
re= /^(13[0-9]{9})|(15[ 89][0-9]{8})$/
if(re.test(ss))
{
document.getElementById('label3').innerText=""; //Give label Use innerText
}
else
{
document.getElementById('label3').innerText="Please enter the correct mobile phone number!";
document.getElementById('imagebutton1') .disabled=true; //Disable Button using disabled
}
Verification of email address (including @ and .)
var re;
var ss=document.getElementById(textboxid).value;
re= /w@w* .w/
if(re.test(ss))
document.getElementById('label4').innerText="";
else
{
document.getElementById('label4' ).innerText="Please enter the correct email address!";
document.getElementById('imagebutton1').disabled=true;
}
Postcode verification (the beginning cannot be is 0, 6 digits in total)
var ss=document. getElementById('TextBox4').value;
var re= /^[1-9][0-9]{5}$/
if(re.test(ss))
document.getElementById ('label5').innerText="";
else
{
document.getElementById('label5').innerText="The postal code format is incorrect! ";
}
var r= /^13[012345789]{9}/ 11 digits starting with 13, the number 6 cannot appear in the last 9 digits