input show validation message

Solutions on MaxInterview for input show validation message by the best coders in the world

showing results for - "input show validation message"
Miguel Ángel
10 Nov 2018
1// Validate emai
2
3var applicationForm = document.getElementById("applicationForm");    
4if (applicationForm.checkValidity()) {
5  applicationForm.submit();
6} else {
7  applicationForm.reportValidity();
8}