Answers for "check if input has value javascript"

0

check if input has value javascript

var myInput = document.getElementById("customx");
if (myInput && myInput.value) {
  alert("My input has a value!");
}
Posted by: Guest on September-03-2021

Code answers related to "check if input has value javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language