w3co / jcf

Advanced form elements customization using CSS/JS
MIT License
202 stars 55 forks source link

cloning jcf select control #41

Closed parmarnishant closed 6 years ago

parmarnishant commented 7 years ago

I am trying to clone div with jcf controls using jquery. jcf.refresh or jcf.replace do not work in dynamically added controls.

yazonnile commented 7 years ago

Yes. If you need to clone control, you can go in two ways.

  1. Destroy jcf on orig element, clone, init jcf on both (original and cloned)
  2. Clone just original control and init jcf on cloned element