Answers for "data message input html"

1

filled input in form

<input type="text" value="default value">
Posted by: Guest on May-28-2020
0

input show validation message

// Validate emai

var applicationForm = document.getElementById("applicationForm");    
if (applicationForm.checkValidity()) {
  applicationForm.submit();
} else {
  applicationForm.reportValidity();
}
Posted by: Guest on November-24-2020

Browse Popular Code Answers by Language