I am trying to implement the following credit card form… https://github.com/jessepollak/card following the section named Usage (without jQuery)
. I am implementing it using a text file which has the following code…
<script>
var card = new Card({
form: '#myform',
container: '#con',
formSelectors: {
numberInput: 'input#number'
}
});
</script>
</head>
<body>
<div id="con">
<form id=myform>
<input type="text" name="number">
</form>
</div>
<script src="D:card-masterdistcard.js">
</script>
</body>
Unforunately, the result is just that the text item is displayed on the web page. Nothing else. Here’s a pic of what I am seeing…
And here’s a code pen with the same code…
My Pen
What am I missing here?