Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if input has value javascript

var myInput = document.getElementById("customx");
if (myInput && myInput.value) {
  alert("My input has a value!");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #input #javascript
ADD COMMENT
Topic
Name
7+2 =