Unbenannt
public javascript v1 · immutablefunction checkFields() { if (IsNumeric(document.EDIT.Price.value)) { alert ( "Not Numeric" );return false; } return true; }function IsNumeric(strString) { /* Remove dots and commas */ var foo = strString; foo = NewToolCost.replace(/,/g, ""); foo = NewToolCost.replace(/./g, ""); /* check if string is numeric */ if isNaN(foo) { alert(foo); return false; } else { return true; } }