Jquery Mobile Phone, phone number, area code, digital verification program
Jquery Mobile Phone, phone number, area code, digital verification program
Function checkOK ()
{
$ (". Text_red"). hide ();
I = 0;
If (isNaN ($ ("# MPNation"). val ()))
{
$ ("# ErrorMsg_1"). show ();
I ++;
}
If ($ ("# RefreshResume_Form"). find ("# isenglish"). val ()! = 1)
{
If ($ ("# Mobile"). val ()! = "Mobile phone number" & isNaN ($ ("# Mobile"). val ()))
{
$ ("# ErrorMsg_1"). show ();
I ++;
}
If (isNaN ($ ("# HPNation"). val ()))
{
$ ("# ErrorMsg_2"). show ();
I ++;
}
If ($ ("# HPCity"). val ()! = "Area code" & isNaN ($ ("# HPCity"). val ()))
{
$ ("# ErrorMsg_2"). show ();
I ++;
}
If ($ ("# HPNumber"). val ()! = "Phone number" & isNaN ($ ("# HPNumber"). val ()))
{
$ ("# ErrorMsg_2"). show ();
I ++;
}
If (isNaN ($ ("# FPNation"). val ()))
{
$ ("# ErrorMsg_3"). show ();
I ++;
}
If ($ ("# FPCity"). val ()! = "Area code" & isNaN ($ ("# FPCity"). val ()))
{
$ ("# ErrorMsg_3"). show ();
I ++;
}
If ($ ("# FPNumber"). val ()! = "Switchboard number" & isNaN ($ ("# FPNumber"). val ()))
{
$ ("# ErrorMsg_3"). show ();
I ++;
}
If ($ ("# FPExtension"). val ()! = "Extension" & isNaN ($ ("# FPExtension"). val ()))
{
$ ("# ErrorMsg_3"). show ();
I ++;
}
}
Else
{
If ($ ("# Mobile"). val ()! = "Tel. No" & isNaN ($ ("# Mobile"). val ()))
{
$ ("# ErrorMsg_1"). show ();
I ++;
}
If (isNaN ($ ("# HPNation"). val ()))
{
$ ("# ErrorMsg_2"). show ();
I ++;
}
If ($ ("# HPCity"). val ()! = "City" & isNaN ($ ("# HPCity"). val ()))
{
$ ("# ErrorMsg_2"). show ();
I ++;
}
If ($ ("# HPNumber"). val ()! = "Tel. No" & isNaN ($ ("# HPNumber"). val ()))
{
$ ("# ErrorMsg_2"). show ();
I ++;
}
If (isNaN ($ ("# FPNation"). val ()))
{
$ ("# ErrorMsg_3"). show ();
I ++;
}
If ($ ("# FPCity"). val ()! = "City" & isNaN ($ ("# FPCity"). val ()))
{
$ ("# ErrorMsg_3"). show ();
I ++;
}
If ($ ("# FPNumber"). val ()! = "Tel. No" & isNaN ($ ("# FPNumber"). val ()))
{
$ ("# ErrorMsg_3"). show ();
I ++;
}
If ($ ("# FPExtension"). val ()! = "Ext" & isNaN ($ ("# FPExtension"). val ()))
{
$ ("# ErrorMsg_3"). show ();
I ++;
}
}
If (I> 0) return false;
Return true;