Created
October 23, 2014 20:35
-
-
Save chrissrogers/80c04993946de37a4223 to your computer and use it in GitHub Desktop.
updating and dispatching a change event
This file contains hidden or 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
| function changeZip () { | |
| var input = document.querySelector('#postal_code'); | |
| input.value = '90210'; | |
| input.dispatchEvent(new Event('change')); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment