Answers for "jquery input cvv format"

0

jquery input cvv format

function validate_cvv(cvv){

         var myRe = /^[0-9]{3,4}$/;
         var myArray = myRe.exec(cvv);
         if(cvv!=myArray)
          {
            alert("Invalid cvv number"); //invalid cvv number
            return false;
         }else{
             return true;  //valid cvv number
            }

         }
Posted by: Guest on July-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language