Answers for "jquery checkvalidity"

1

jquery checkvalidity

<p id="demo"></p>

<script>
function myFunction() {
  var inpObj = document.getElementById("id1");
  if (!inpObj.checkValidity()) {
    document.getElementById("demo").innerHTML = inpObj.validationMessage;
  }
}
</script>
Posted by: Guest on June-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language