Clone a div that contains "customized" jQueryUI datePicker

Posted by Enrique on Stack Overflow See other posts from Stack Overflow or by Enrique
Published on 2010-04-13T23:05:30Z Indexed on 2010/04/13 23:13 UTC
Read the original article Hit count: 329

Filed under:
|
|
|
|

I have a div that contains 3 fields

You can see the image here
http://imgur.com/A3tbd.jpg

I'm cloning this div with this plugin
http://sroucheray.org/blog/demos/jquery-dynamic-form/

My problems are:

  • It doesn't clone correctly datePicker.
  • I'm using validate form plugin, but I guess this plugin is not prepared to validate cloned elements

Is there any easy code, other plugin or some functions I should use for doing this sequence?

  • Verify user has filled the 3 fields of the actual div
  • If so, clone the div and create a new set of 3 fields. Also, clone datePicker correctly
  • If user clicks the delete button, erase last div (last 3 fields)
  • When form submitted, post all fields correctly

Thanks,

© Stack Overflow or respective owner

Related posts about clone

Related posts about jQuery