I need to implement a feature where I can select multiple items using checkboxes and retrieve them when a popup is closed. Here's what I want to achieve:
Is there a way to accomplish this?
Imagine I have a div with several items, and I want to display checkboxes on clicking the items. Upon closing the popup, I should be able to fetch the selected items.
<div id="div1" style="display:block;background-color:green">>
<ul>
<li>Item1</li>
<li>Item1</li>
<li>Item1</li>
<li>Item1</li>
<li>Item1</li>
<li>Item1</li>
<li>Item1</li>
<li>Item1</li>
</ul>
</div>