Created
May 11, 2013 03:43
-
-
Save prathamesh-sonpatki/5558812 to your computer and use it in GitHub Desktop.
coffeescript is awesome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fill out the form with company attributes | |
attributes = ['name', 'website', 'phone', 'address', 'country', 'state', 'city', 'zip'] | |
for attr in attributes | |
$("#company_#{attr}").val(company["#{attr}"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment