I am trying to get the click event of a submit button on my form...
You need to run your script when the DOM is ready, as well as providing a callback to the click method:
$(function() { $('#submitDemo').click(function() { // do your stuff }); });