I'm looking to validate a credit card number using jQuery Credit Card Validator: http://jquerycreditcardvalidator.com/
For the past couple hours I've tried to familiarize myself with javascript, coffeescript, and jquery so I can figure out how to use it.
These are the steps i've taken to get it to work:
I downloaded coffeescript and node.js as well as jquery.
I compiled the .coffee file I downloaded from the credit card validator site above, which from what I understand turns it into plain Javascript.
Then I downloaded Sublime Text 2 and opened the new .js file and added script tags to the beginning and end.
Finally I saved it as a .html and tried to run it in chrome where nothing happens.
Forgive me if I'm missing something obvious or don't understand the concept, I believe what I'm trying to do is display the form at the top of the Credit Card Validator website above when I drag and drop the .html file into chrome, and from there I can validate my own credit card numbers.
So I'd imagine the "How to Use it section" on the website above is what I need to incorporate, but I have no clue how.
If someone could just point me in the right direction, you'd spare me hours of mindless tutorial surfing. Thanks
Edit: I used <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> and got rid of the jquery error, but now just a bunch of text appears and the syntax error mentioned in the comments.