Is there a way to code this with html/css?
I want to format it so two digits either side of the "/" in the expiry box. I have just places the "/" in the form on my web page to show what I am trying to do.
Credit Card Number:
<input class="inputCard" type="text" name="creditCard1" id="creditCard1"/>
-
<input class="inputCard" type="text" name="creditCard2" id="creditCard2"/>
-
<input class="inputCard" type="text" name="creditCard3" id="creditCard3"/>
-
<input class="inputCard" type="text" name="creditCard4" id="creditCard4"/>
<br />
Card Expiry:
<input class="inputCard" type="text" name="expiry" id="expiry"/>
I want to format it so it will only accept four numbers in each credit card text box.
I don't need the code to validate my data with javascript (I know how to do this). I am struggling with the html design.