Javascript function for validating phone number


11-Jul-2016 16:30

Here are some format of some well known credit cards.li {list-style-type: none; font-size: 16pt; } { margin: auto; padding-top: 10px; padding-bottom: 10px; width: 400px; background : #D8F1F8; border: 1px soild silver; } h2 { margin-left: 38px; } input { font-size: 20pt; } input:focus, textarea:focus{ background-color: lightyellow; } input submit { font-size: 12pt; } { color: #FF0000; font-size: 10pt; } function cardnumber(inputtxt) { var cardno = /^(?We are not sure that all the formats which we have discussed here are correct because time to time a company can change their numbering format.You can easily change a format with simply modify the regular expression which we have used for various cards.

"); return false; } } function cardnumber(inputtxt) { var cardno = /^(? :0[0-5]|[68][0-9])[0-9]{11})$/; if(inputtxt.value.match(cardno)) { return true; } else { alert("Not a valid Dinners Club card number!

Alongside HTML and CSS, Java Script is one of the three core technologies of World Wide Web content production; the majority of websites employ it, and all modern Web browsers supported it without the need for plug-ins.