validate cardnumber in javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zayn
    New Member
    • Sep 2019
    • 17

    validate cardnumber in javascript

    I'm working on an assignment for school where we're working with JavaScript (I'm only allowed to use JavaScript) to validate a form for an order. It's my first time working with JavaScript so and I feel a bit lost.. i need the javascript

    Code:
    <td><strong>Card Number</strong></td>
    		<td><input type="text" id="text6" name="fcardnumber" maxlength="30" placeholder="6079 9500 0013 7538">
    Gits, i need the javascript and to link with the html
    Last edited by gits; Sep 10 '19, 09:09 AM. Reason: use code tags!
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    what exactly should happen in the program here and what have you done so far to solve it? What should '... link with the html' mean?

    Comment

    Working...