JQuery form validation
<p>well my problem is that, i have a form, which i want to validate the fields using jquery, if the data is correct i let the submit continue, if no i disable the default behavior by returning false(saw that in a tutorial, <a href="http://blog.themeforest.net/screencasts/jquery-for-absolute-beginners-day-13/" rel="nofollow">here</a>).<br />
so i used as i said the jquery syntax, when the document is ready, i registered for the click event of the button, the problme is that code never gets executed. i used firebug but no clue. nothing happens, so here is my code:<br /></p>

<pre><code>$('#submitBtn').click(function()
{
 var password1 = $('#form_password').val();
 var password2 = $('#form_password2').val();
 if( password1 != password2)
 {
  alert("the two passwords are not equal.");
 }
 return false; //to disable the default behavior of the submit btn
});
</code></pre>
