Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reportValidity

document.querySelector('#report-validity').addEventListener('click', function() {
  var isValid = document.querySelector('#sample-form').reportValidity();
  ChromeSamples.setStatus('The form ' + (isValid ? 'is' : 'is not') + ' valid.');
});
Source by googlechrome.github.io #
 
PREVIOUS NEXT
Tagged: #reportValidity
ADD COMMENT
Topic
Name
9+7 =