Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.09 KB

README.md

File metadata and controls

38 lines (32 loc) · 1.09 KB

jquery.card-number

NPM

jquery.card-number.js

flexible input card number with prefix and logo

Install

$ bower i jquery.card-number.js

or

$ npm i jquery.card-number.js

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