Answers for "hhow to check input is null in html using js"

1

hhow to check input is null in html using js

function required(inputtx) 
   {
     if (inputtx.value.length == 0)
      { 
         alert("message");  	
         return false; 
      }  	
      return true; 
    }
Posted by: Guest on May-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language