title: Validating Password and Retype Password
body: <p>I am having two textboxes like this : </p>
  
  <pre><code>&lt;p&gt;
  &lt;input type="text" name="NPassword" placeholder="New Password"/&gt;&lt;/p&gt;
  &lt;input type="text" name="RNPassword" placeholder="Retype New Password"/&gt;
  </code></pre>
  
  <p>Now,what i want is that on every keypress of Retype New Password It should check if both are same or not.If yes then in green color display it on right side of RNPassword,Otherwise in red color display that both are not same and also disable the submit button of the page.How this can be done please help.</p>