Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amiryxe/credit-card-input

Credit card input with multiple fields
https://github.com/amiryxe/credit-card-input

credit-card fields input javascript jquery

Last synced: about 2 months ago
JSON representation

Credit card input with multiple fields

Awesome Lists containing this project

README

        

# Credit card input

Vanilla JS credit card form with multiple fields.

## [DEMO](https://amiryxe.github.io/credit-card-input/)

You can also see the demo on the [Codepen](https://codepen.io/amiryxe/pen/QWgQPEa)

## Features
- Automatically focuses the next field
- Only accepts numbers
- Holds the main input
- Copy to clipboard

## How to use

Include the style file:

```css

```

Include the js file:

```js

```

Use this HTML structure to initial credit inputs:

```html








Reset

```

If you want to use the copy to clipboard feature, include this file in your project:
```js

```

## CDN
```css

```

```js

```