[jQuery] Re: Dynamic form validation on different names possible?

2009-01-05 Thread dfiguero
{ element.parent().parent().next().next().next().replaceWith (error) } //debug: true }); On Jan 5, 9:25 am, dfiguero wrote: > Thanks for your help Jörn. I finally figured out what my problem was. > The page doesn't load all the input elements in t

[jQuery] Re: Dynamic form validation on different names possible?

2009-01-05 Thread dfiguero
ue, rules: rules}); > > Jörn > > On Fri, Dec 19, 2008 at 4:00 PM, dfiguero wrote: > > > So far I got: > > > $(function(){ > >   $.validator.addMethod("compare", function(value, element, param){ > >      Date.format = 'mmm. dd,

[jQuery] Re: Dynamic form validation on different names possible?

2008-12-23 Thread dfiguero
#" + end_date] } Anyone done anything similar? Diego. On Dec 19, 10:00 am, dfiguero wrote: > So far I got: > > $(function(){ >    $.validator.addMethod("compare", function(value, element, param){ >       Date.format = 'mmm. dd, '; >  

[jQuery] Re: Dynamic form validation on different names possible?

2008-12-19 Thread dfiguero
les}); }); But I guess my logic is not that great since the compare method doesn't seem to be called. Perhaps the method definition does not match the way I'm calling it but I'm not able to see that on firebug. Any suggestions? Diego. On Dec 18, 4:10 pm, dfiguero wrote: >

[jQuery] Re: Dynamic form validation on different names possible?

2008-12-18 Thread dfiguero
date({options:rules}); > > Jörn > > On Thu, Dec 18, 2008 at 3:01 PM,dfiguero wrote: > > > Hi, > > > I'm trying to validate a form with a dynamic date fields. Something > > like: > > > > >   > >     > value="Mar. 29, 2008"

[jQuery] Dynamic form validation on different names possible?

2008-12-18 Thread dfiguero
Hi, I'm trying to validate a form with a dynamic date fields. Something like: ... I got my validation rules working but only if I hardcode each of the input's names: $("form").validate({ rules: { "date-1-start": compare ["#date