On Nov 5, 4:29 pm, Fontzter <[email protected]> wrote:
> Hi,
>
> I looked at the code.  Here are a couple of ideas/pointers:
>
> Do you need to use live?  Can't you just use a click event for this?

No, no need, I just thought that it might fix it.

> I would use a class name other than "input" and "text".  It may not be
> an issue, but these are keywords and it makes the code very confusing.

Yeah, that is what i'm using in the original code, this is just a test
case.

> Can you avoid using ids?  I see your code to increment the id number,
> but it is always best to avoid ids when cloning.

I can't avoid ids.
> Can you do this without cloning?  Can't you just make a string of the
> html that you want to append and use that instead?  You could even
> create the ids that you want in the string.

No, since i'm cloning a large portion and changing its attribs.
> If you mustcloneadatepickerthat is already created, you should use
> true flag on thecloneto copy the events with the DOM elements.  
> see:http://docs.jquery.com/Manipulation/clone#bool
>
That didn't work, it messed it up.
> I'm not sure what's causing your issue.  It could be any one of the
> things listed above.  For example, your firstdatepickeradds the
> class "hasDatepicker" when it is created.  Then youcloneit
> (including this class) and attempt to make adatepickerout of theclone.  I 
> don't know thedatepickercode that well, but I suspect
> there may be something that says "Don't make me adatepickeragain if
> I already have one as indicated by the class "hasDatepicker".
>
> Hth,
>
> Dave
>
> On Nov 4, 2:35 pm, ziad <[email protected]> wrote:
>
>
>
> > Hello,
>
> > I need help in fixing 
> > thishttp://lostspirits.org/~nore/jquery-ui/jquery_test.html
> > (the code is clear I guess)
> > I just need an activedatepickeron the newly created fields.
>
> > Any help is appreciated
>
> > Thanks.

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=.


Reply via email to