Can someone tell me what I am doing wrong over here.. Its printing out alert when I put character like abc but when I have valid number its not saving...

```
function ValidateNumeric() {
    var val = document.getElementById("tbNumber").value;
    var validChars = '0123456789.'; 

    for(var i = 0; i < val.length; i++) { 
      if(validChars.indexOf(val.charAt(i)) == -1)
       alert('Please enter valid number');
       return false; 
        } 

        return true; 
    }

<INPUT TYPE=SUBMIT NAME="action" VALUE="Save Changes" onclick="return ValidateNumeric();" >

```