 <p>Remove the <code>()</code> from your final statement.</p> <p><code>s/submitForm\(\)/submitForm/</code>.</p> <p>You are actually calling the function.</p> <p><a href="http://jsfiddle.net/fx6hefe4/" rel="nofollow">http://jsfiddle.net/fx6hefe4/</a></p> <p>Will look like this:</p> <p><code> $(function() { $("#btnContact").on("click", submitForm); }); </code></p>