HI,
I am after writing an IsNumeric method but it is not recognising decimals. I will actually be entering code-levels eg, 2.2.60.2 etc so it is vital that it will recognise the decimals.
var qe = document.getinfo.elements["Code1"]
var q = qe.value
if (isNaN(q)||q.match(/^\W*$/)) {
alert( "The codelevel is not a number!"
qe.focus();
qe.select()
return false;
}
Any ideas on how to fix this??
Cheers
JY
I am after writing an IsNumeric method but it is not recognising decimals. I will actually be entering code-levels eg, 2.2.60.2 etc so it is vital that it will recognise the decimals.
var qe = document.getinfo.elements["Code1"]
var q = qe.value
if (isNaN(q)||q.match(/^\W*$/)) {
alert( "The codelevel is not a number!"
qe.focus();
qe.select()
return false;
}
Any ideas on how to fix this??
Cheers
JY