I would like to know if there is any way to override the function that validates a field in html5, I note that browsers elegantly implement a floating alert, I want to have a custom test in which I check CPF and other data not simple.
I basically want to use the browser media but with javascript implement a different validation overwriting the validation that the browser uses in that type and even implementing new types.
I would rather implement something that would allow me to create an input field that validates CPF, CNPJ, url different from what the browser implements, and even emails, but without losing the browser form that today gives us that it is well elegant in my eyes.