0
Suppose there is an input that receives a phone number. If the mask returns that it is invalid, how to insert a warning (html and css) in the input to tell the user that the data is invalid? I do not have much notion of JS interaction, just managed to give the message through the alert
, but let’s face it, it’s kind of boring.
NOTE: I want a solution without the use of jQuery.
There are several ways to do it, depending on what is "alert" for you.
– Renan Gomes
Anything around the input. Whether to change the edge of it, insert a div next to the form, things like that, right into html
– Kirk