Created
August 1, 2015 16:33
-
-
Save juampynr/2907a818f8c5a9654a4f to your computer and use it in GitHub Desktop.
Snippet to fill out the form at https://react-form.herokuapp.com
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
document.getElementsByName('name')[0].value = 'name'; | |
document.getElementsByName('email')[0].value = 'test@example.com'; | |
document.getElementsByName('company')[0].value = 'company'; | |
document.getElementsByName('phone')[0].value = '1234'; | |
document.getElementsByName('website')[0].value = 'https://www.lullabot.com'; | |
document.getElementsByName('areas')[2].checked = 'checked'; | |
document.getElementsByName('areas')[0].checked = 'checked'; | |
document.getElementsByName('when')[4].checked = 'checked'; | |
document.getElementsByName('budget')[0].value = 'budget'; | |
document.getElementsByName('project')[0].innerHTML = 'project'; | |
document.getElementsByName('referal')[0].value = 'friend'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment