So, I have a hidden div that I want to show on button click. And not only do I want to show it, but I also want to append another div to it. The show and hide functionality is working fine, but the appending part seems tricky when dealing with hidden elements.
this.show=true;
let area = $(".solution");
let Detail = `<div class="class-1">
<p>Text</p>
</div>`;
area.append(Detail);
If anyone has a solution for successfully appending the div even when it's hidden, please share. Thank you!