You do not have to use inline validate messages.  You can use the configuration 
variable for this:

$("#myform").validate({ messages: { myfield: "you must enter a value." } });

-- Josh


  ----- Original Message ----- 
  From: Alessandro Feijó 
  To: jquery-en@googlegroups.com 
  Sent: Monday, November 19, 2007 4:04 AM
  Subject: [jQuery] Working with cluetip and validate


  I just set a form using both plugins

  (jquery.validate.js and jquery.cluetip.js)

  Both use Title to set his content.

  So, a natural conflit is heppening.

  The cluetip title (before the pipe) its been the actualy content of validate 
red warning string. 

  How can I circunvent that?

  If I can give a sugestion, both plugins could offer the possibility to set a 
custom attribute:

  <input cluetip='My Title|my detail' validate='please inform this field'> 

  or, more simple to read:

  <input cluetip_title='My Title' cluetip_detail='my detail' validate='please 
inform this field'>

  I use custom attr in my drupal project without problems!  Very pratical


  Thanks
  Feijó

Reply via email to