How to clone only one of multiple nested elements
- by eknown
How do I find if the div I'm cloning has more than one of a child div with a certain class, and if so only clone one of them.
Say the cloned div is .diseaseCon, and the child div(s) is .symptomCon, in the cloning action, how can I detect if there's more than one .symptomCon divs and only clone one if there are?