views:

80

answers:

1

Hi,

i have this simple form validation in jquery:

<script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;
<script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js"&gt;&lt;/script&gt;

<script type="text/javascript">
window.onload = (function(){
  $("#register_form").validate({
   rules: {
      username: {
      required: true,
      minLength: 3
     },
     password: {
   required: true,
   minLegth: 3
     },
     password_2: {
   equalTo: "#password",
     }
  }
 });
});

</script>

If I digit a char in username I have this error in firefox javascript console (ver. 3.6.3):

"The 'charCode' property of a keyup event should not be used. The value is meaningless."

Is there any way to fix it?

A: 

Personally, I've always ignored this error...it's a result of jQuery normalizing the event (and assigning what you need to event.which), it causes no harm, and only Firebug seems to care.

Nick Craver
ok, I will ignore it..thanks a lot
@salvo76 - Be sure to close-out your questions by selecting answer that resolves your issue (or in this case, answers the question) via the check-mark to the left of the most helpful answer. It helps the next guy finding this, and "closes" the question to remove it from the unanswered list.
Nick Craver