Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
Creating a mock credit card input field using Bootstrap
Post Flair (click to view more posts with a particular flair)
Post Body

I am currently making a mock credit card input field for a project for school. However, there are a few issues that have come up.

  1. I cannot type in the Card Number Field
  2. I am not sure how to set the Date of Expiration to only take MM/YYYY
  3. I am trying to make it so that the Security Code only takes numbers. When I set the type to number, the character limit is no longer in effect. When I set it to text, the character limit works but I can still type in letters.

Edit, fixed the input issue by matching name with the data.xxxx value

<div>
            <label htmlFor="ccn"> Card Number: </label> <br />
            <Form.Control
              value={data.creditCardNumber}
              type="text"
              label="ccn"
              placeholder="1234123412341234"
              onChange={handleInputChange}
              name="creditCardNumber"
              maxLength="16"
            ></Form.Control>
          </div>
          <div>
            <label htmlFor="doe"> Date of Expiration: </label> <br />
            <Form.Control
              value={data.dateOfExpiration}
              type="date"
              label="doe"
              placeholder="MM / YY"
              name="dateOfExpiration"
              onChange={handleInputChange}
            ></Form.Control>
          </div>
          <div>
            <label htmlFor="cvc"> Security Code: </label> <br />
            <Form.Control
              value={data.cvc}
              type="number"
              label="cvc"
              placeholder="123"
              onChange={handleInputChange}
              name="cvc"
              maxLength="3"
            ></Form.Control>
          </div>
</div>

Author
Account Strength
100%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
9,114
Link Karma
553
Comment Karma
8,165
Profile updated: 2 days ago
Posts updated: 1 month ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago