1.0.2 • Published 8 years ago

jquery.card-number.js v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

NPM

jquery.card-number.js

flexible input card number with prefix and logo

jquery.card-number

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

methodtypevalue
prefixstringprefix for value
placeholderstringvisible placeholder
background_colorstringbackground color (color as hex)
namestringattribute name for input
srcstringsrc for icon on right-side