I have made a function for validating a text field. It is required that it is numeric. I have tried the code below, but the alert is activated when a "-" is entered. Can I use a IsNumeric method like in VB?
}Code:... var err3 = 0; var allowedchars = /\D/; if ((allowedchars.test(document.cond.luftf.value)) || (allowedchars.test(parent.frames[1].navform.flow.value))) { alert("ERROR"); err3 = 1; ...




Reply With Quote