Last active
May 8, 2021 09:26
-
-
Save ry8806/8c54c7ad455443dc4589f3f4991d0979 to your computer and use it in GitHub Desktop.
Elastic Email + JavaScript
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
| <form id="subscribeForm"> | |
| <input id="email-input" type="text" /> | |
| <button type="submit">Submit</button> | |
| </form> |
Author
$('#email-input').val('');
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
oh that's the reason, anyway it works fine, just the last question, how to clear field after submission?
now i'm using
document.getElementById("subscribeForm").reset();