G
Guest
I am new to jscript..
I am trying to validate if a textbox on my ASP.NET page has numeric value..
The code I am using is
function IsValidAmount()
{
var intTotalAmt = document.Form1.txtTotalAmt.value;
If (isNaN(intAmt1)== false)
{//do something}
}
I am getting a Object Expected error at the If Condition. can someone guide
me on the same...
Also Is it is OK using the isNaN function for Numeic validation as I have
seen people writing there own custom IsNumeric Function for the purpose.
cheers,
siaj
I am trying to validate if a textbox on my ASP.NET page has numeric value..
The code I am using is
function IsValidAmount()
{
var intTotalAmt = document.Form1.txtTotalAmt.value;
If (isNaN(intAmt1)== false)
{//do something}
}
I am getting a Object Expected error at the If Condition. can someone guide
me on the same...
Also Is it is OK using the isNaN function for Numeic validation as I have
seen people writing there own custom IsNumeric Function for the purpose.
cheers,
siaj