kenkeiter/skeuocard — pull request #101 by swrobel (2013-09-17 01:29:07+00:00)
Title: Hide child elements rather than removing them

If your form inputs are inside of `

`s or other markup, they will be removed when skeuocard does its sweep. The simplest solution to me was just to hide them rather than removing them, but perhaps there's a better one.

To test what happens with the existing code, try the following code instead of the example provide (just added a div wrapper around the cc_number):

```html

Either you have Javascript disabled, or you're using an unsupported browser, amigo! That's why you're seeing this old-school credit card input form instead of a fancy new Skeuocard. On the other hand, at least you know it gracefully degrades...

Card Type

...

Visa

Discover

MasterCard

Maestro

JCB

China UnionPay

American Express

Diners Club

Card Number

Expiration Month

Expiration Year

Cardholder's Name

Card Validation Code

```

When you try to create your new Skeuocard object in console, at least in Chrome, you'll get the following error: `TypeError: Cannot read property 'length' of undefined`