Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Ok. So what is not working? What is the question? besides the e which is undefined What button are you trying to click? Commented Jul 11, 2017 at 11:13
  • e.preventDefault(); isn't acutally doing anything and it's clicing another button. Commented Jul 11, 2017 at 11:14
  • use event.preventDefault(); instead of e.preventDefault(); because in your code the e is not defined. Commented Jul 11, 2017 at 11:17
  • take a look on your browser console, you will see errors there Commented Jul 11, 2017 at 11:17
  • do u want to trigger it on button press? Commented Jul 11, 2017 at 18:56