Skip to content
Advertisement

Input tag validation

I have just an input tag with the following logic:

https://codepen.io/ion-ciorba/pen/MWVWpmR

I have a minimum value coming from the database(400 in this case), the logic is good but the user interaction with the component is really bad, the user can’t input a value that is below 400, I want something else that won’t block the user from typing, maybe some other type of interaction besides change and input. How can I make this interaction more user friendly, but still maintain the minimum value at 400.

Maybe a better solution for that:

JavaScript

Advertisement

Answer

I agree with @Twisty the jQuery UI Slider would be better suited

JavaScript
JavaScript
JavaScript

I hope this helps

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement