I'm working on a html form, and I like to know if there is a tool or way to restrict the user to some rules in inputs, i.e.: -Don't allow the user to put more than 2 digits after the dot -Don't allow the user to put more than 1 dot
I was thinking on regular expressions but how to apply that live.
Thank you.