Suppose there is an input that receives a phone number. If the mask returns it to be 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 a lot of interaction with JS, I just got the message through alert
, but let's face it, it's kind of annoying.
NOTE: I want a solution without the use of jQuery.