Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (42 sloc) 1.1 KB
<script src=""></script>
<script src="jquery-creditcards.js"></script>
<link src="creditcardsprite.css"/>
<p>Using plugin in default mode</p>
<div id="cc"></div>
<br />
<br />
<p>Using plugin in config'd mode</p>
<div id="cc2">
<div id="textboxHolder">
<input type="text" name="MyCustomTextBox" id="myCustomTextBox" value="" >
<input type="text" name="MyCustomCCVTextBox" id="myCustomCCV" value="" >
<div id="imageHolder"></div>
function ()
// Just create the credit card validation control
$("#cc").creditcardvalidation( );
// Create the credit card validation using custom html
$("#cc2").creditcardvalidation( {
inputTextBoxID: "myCustomTextBox",
imageDivID: "imageHolder",
ccvTextBoxID: "myCustomCCV",
callback: function () {
alert ("Is CCN valid? " + this.isCCNvalid + " | Is CCV valid? " + this.isCCVvalid);