Custom validation function html5

0

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.

    
asked by anonymous 05.10.2018 / 22:14

1 answer

1

Have you seen anything about jquery validate and jquery validate unobtrusive? They add a validation layer and allow you to use the default form of browser notification

    
08.10.2018 / 04:09