I've looked this up before, on StackOverflow, and did exactly as it said -- as far as I can tell. I'm stuck with an "uncaught reference error - action not defined" at line 17, "if (action == "Submit") {" which is driving me nuts. Fiddle is here:
http://jsfiddle.net/7f47mazk/1/
or you can just look at the terrible thing, it's all in the source code on that one page:
http://hills.ccsf.edu/~dnuccite/cnit133/hw5d.html
The goal is that the user will be able to enter the number of employees, hit submit, and automatically generate a form on the same page that has that very same number of input fields.
Probably someone saner and wiser than I will look at it and say "Oh, you left out a curly bracket right here," but I am at the end my rope with it. Any words of wisdom for this newbie would be greatly appreciated.