JQuery - Advanced .clone ()

I started here jQuery clone clained selects

Answers Paulj

Version 1: http://jsfiddle.net/m4JTQ/2/

Version 2 (this is a modified version, getting rid of the i iterator: http://jsfiddle.net/Zf7xb/1/

It works great. But now they need to search more.

New scenario:

----Group1 : [+] [-]------------------------------- ----Subgroup : [+] [-] ------------ --Chile | Santiago | Chiñihue --Argentina | San Juan | Rawson --Argentina | San Juan | Rawson (cloned) ----------------------------------- ---------------------------------------------------- 

If I click on [+] in a subgroup, it will clone the last subgroup of that group.

If I click [+] in a group, it will clone the last group with the latest information about the subgroup.

Those:

 ----Group2 : [+] [-]------------------------------- ----Subgroup : [+] [-] ------------ --Argentina | San Juan | Rawson (cloned) ----------------------------------- ---------------------------------------------------- 
0
source share

Source: https://habr.com/ru/post/1433075/


All Articles