Hi,
I am using the following function to validate a forms value as an
integer
function isNumeric(str){
var numericExpressi on = /^[0-9]+$/;
if(str.match(nu mericExpression )){
return true;
}else{
return false;
}
}
I need one to validate a forms value as a float number. I understand
that it should just simply be a change to the value of the
numericExpressi on variable but Im not too good with expression. Ive
tried doing some searches on google but either couldnt find the
relevant function or they just didnt work. Can anyone help? Thanks
Burnsy
I am using the following function to validate a forms value as an
integer
function isNumeric(str){
var numericExpressi on = /^[0-9]+$/;
if(str.match(nu mericExpression )){
return true;
}else{
return false;
}
}
I need one to validate a forms value as a float number. I understand
that it should just simply be a change to the value of the
numericExpressi on variable but Im not too good with expression. Ive
tried doing some searches on google but either couldnt find the
relevant function or they just didnt work. Can anyone help? Thanks
Burnsy
Comment