[jQuery] Re: Validation jQuery plugin - onfocusout throws error

2008-03-07 Thread Jörn Zaefferer


henry schrieb:

jquery: 1.2.3
jquery validation plugin: 1.2.1

I have:
form id=myform name=myform
...
/form

$().ready(){
$(#myform).validate({onfocusout:true});
}


 firebug error message 

validator.settings[on + event.type].call is not a function

on jquery.validate.js line 250


same error msg is thrown with onkeyup as well... Why??
  
You can pass a function and a boolean-false as the argument to those. 
What are you trying to achieve with true?


Jörn


[jQuery] Re: Validation jQuery plugin - onfocusout throws error

2008-03-07 Thread henry

Validate elements (except checkboxes/radio buttons) on blur. If
nothing is entered, all rules are skipped, except when the field was
already marked as invalid.

I want $.validate() to validate my form element on blur, so I set
onfocusout to true.  Althought it says by default it is set to true,
but my form element is not validated on blur, why?


Thank you.


On Mar 7, 9:00 am, Jörn Zaefferer [EMAIL PROTECTED] wrote:
 henry schrieb:



  jquery: 1.2.3
  jquery validation plugin: 1.2.1

  I have:
  form id=myform name=myform
  ...
  /form

  $().ready(){
  $(#myform).validate({onfocusout:true});
  }

   firebug error message 

  validator.settings[on + event.type].call is not a function

  on jquery.validate.js line 250

  same error msg is thrown with onkeyup as well... Why??

 You can pass a function and a boolean-false as the argument to those.
 What are you trying to achieve with true?

 Jörn- Hide quoted text -

 - Show quoted text -