Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

hhow to check input is null in html using js

function required(inputtx) 
   {
     if (inputtx.value.length == 0)
      { 
         alert("message");  	
         return false; 
      }  	
      return true; 
    } 
	
 
PREVIOUS NEXT
Tagged: #hhow #check #input #null #html #js
ADD COMMENT
Topic
Name
9+8 =