17-10-12, 01:27 PM
كاتب الموضوع : AhmedEssawy
لتأكد من صحه الحقولكود :
function ValidateForm(form)
{
if(IsEmpty(form.account_number))
{
alert('You have not entered an account number')
form.account_number.focus();
return false;
}
if (!IsNumeric(form.account_number.value))
{
alert('Please enter only numbers or decimal points in the account field')
form.account_number.focus();
return false;
}
return true;
}