please enter a valid value the two nearest valid value is? September 24, 2023 by Tarik Try adding the attribute step="any" to your input. That helped me.