[Solved] Why won’t my button run my javascript [closed]


I’ve used some of the suggestions in comments above, and changed around a few things myself and cleaned up the code. I’ve made it work…

The primary changes were

  • change the form method to post
  • change your <button> to <input type="submit">

please see this jsFiddle to see a working example of your code.

Hope you’re able to see your mistakes by comparing with your own code!

2

solved Why won’t my button run my javascript [closed]