Hi
I have a ASP page called 'business' which has text fields etc and on the click of a button 'Submit form' it has this
at the end of the form there are various functions written in Javascript such as
However when the button is clicked no validation is performed. Any ideas?
Ta
Richey
I have a ASP page called 'business' which has text fields etc and on the click of a button 'Submit form' it has this
Code:
<INPUT TYPE="submit" NAME="butEdit" VALUE="Submit Form" ONCLICK="return validate();" style="font-family: Arial Black; border: 3 solid #000080; padding-top: 0; padding-bottom: 2">
at the end of the form there are various functions written in Javascript such as
Code:
<!--when the user clicks the register now button it calls the method Validate -->
<!--under are the functions called within the function 'Validate' -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide script from older browsers
//************************************************************************************************************
// function to validate a number that is typed
function isDigit(c)
{
var test = "" + c;
if (test == "0" || test == "1" || test == "2" || test == "3" || test == "4"
|| test == "5" || test == "6" || test == "7" || test == "8" || test == "9")
{
return true;
}
return false;
}
//************************************************************************************************************
// function to validate a row of numbers by calling the isDigit function numbers (K++)
However when the button is clicked no validation is performed. Any ideas?
Ta
Richey