How to Append template while dropping and dropped template's child as droppable(nested).
$template=$("<div class="static">box1</div><div class="droppable-box-nested">box2</div>");
Need to append above code to my below fiddle while dropping and box2 is droppable.
You have some syntax issues in your
$template, it should be something like:The use of
"breaks out of your string and you should use'.Working example: https://jsfiddle.net/Twisty/vwyd9cz1/1/
JavaScript