Answers for "javascript validation for number of characters"

0

javascript validation for number of characters

function lengthRange(inputtxt, minlength, maxlength)
{  	
   var userInput = inputtxt.value;  
   if(userInput.length >= minlength && userInput.length <= maxlength)
      {  	
        return true;  	
      }
   else
      {  	
	alert("Please input between " +minlength+ " and " +maxlength+ " characters");  		
        return false;  	
      }  
}
Posted by: Guest on February-14-2021

Code answers related to "javascript validation for number of characters"

Code answers related to "Javascript"

Browse Popular Code Answers by Language