jquery.card-number.js
v1.0.2
Published
input card number with prefix and logo
Downloads
11
Readme
jquery.card-number.js
flexible input card number with prefix and logo
You can see example in action
$(function () {
$('.js-card-number').card({
prefix: '1234 00',
placeholder: '00 0000 0000',
background_color: '#C70017',
name: 'partners_field',
src: 'http://4vector.com/i/free-vector-mastercard-logo_090839_MasterCard_logo.png'
})
})
Params
| method | type | value | | :---: | :---: | :---: | | prefix | string | prefix for value | | placeholder | string | visible placeholder | | background_color | string | background color (color as hex) | | name | string | attribute name for input | | src | string | src for icon on right-side |