jquery onclick submit not working properly : <p>I am new to stackoverflow.</p>

<p>I am using jQuery for an application. Because of some reasons the onclick submit is not working to change the color of the submit button.</p>

<p>Here's a minimal demonstration of my problem.</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
   $("input[type='submit']").onClick(function(){
      $(this).css('background-color','red');
    });
});</code></pre>
<pre class="snippet-code-css lang-css prettyprint-override"><code>.blue{
  background-color: blue;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;form&gt;
&lt;input type="submit" value="submit" class="blue"&gt;
&lt;/form&gt;</code></pre>
</div>
</div>
</p>
