scripts/validate.js
/**
 * This method validates any input to be a number only
 * 
 * @param anInput
 * 
 * @return boolean //false if something is not a number
 */
This method validates any input to be a number only

@param anInput

@return boolean //false if something is not a number
This method validates any input to be a number only @param anInput @return boolean // false if something is not a number
function validateNumericOnly(anInput){
    if(/^?[0-9]*$/.test(anInput) == true){
        document.getElementById("inputErrors").innerHTML = "Invalid Input";
        return false;
    }
}
function validateNumericOnly ( anInput ) { if ( / ^?[0-9]*$ / . test ( anInput ) == true ) { document . getElementById ( "inputErrors" ) . innerHTML = "Invalid Input" ; return false ; } }
This method validates any input to be a number only
This method validates any input to be a number only