Please enter a valid value. The two nearest valid values are 499.999 and 500.999

 

When Typeing and Click its Showing for Number Field as

“Please enter a valid value. The two nearest valid values are 499.999 and 500.999”

 

And the Data Not Saving?

 

Solution:

Here, You need to use step=”any” as an attribute when working with type=”number” input fields.

Like:

 

<form>
        <input step="any" type="number" name="price" maxlength="5" value="" />
</form>