Last active
August 29, 2015 14:03
-
-
Save jasonmerino/353a9f21d768978d302d to your computer and use it in GitHub Desktop.
Form Populatr Bookmarklet
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
javascript:(function() { | |
// create a spec of field's -> values | |
// note: don't be silly and put actual credit card numbers in here, this is just for testing purposes | |
var spec = { | |
'credit-card': '4321 4321 4321 4321', | |
expiration: '12/23', | |
cvv: 987 | |
}; | |
for (var id in spec) { | |
document.getElementById(id).value = spec[id]; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment