katlau/Too-Soon-Test — comment on commit 254947fc5adc49374fdf79ca116792fd8c431791
File:  line 0
By baygross:

When you set hooks on DOM elements like .click(), the code has to be within the document.ready(...) block. Otherwise javascript tries to assign that hook before the $('#submitbutton') div has loaded into the DOM.