Forum Moderators: open
function validateForm
{
var char = "0123456789."; <------------********ERROR is here it says runtime error ")" expected
var priceValue = myForm.price.value;
if (i=0; i<priceValue.length; i++)
{
if (priceValue.charAt(i)< 0 ¦¦ priceValue.charAt(i)> 9 )
{
if (priceValue.charAt(i)!= '.' ¦¦ priceValue.charAt(i)!= ',')
{
alert('please enter right amount');
false;
}
}
}
}
thanks
Dee