I have come up with a logic, but I am encountering some difficulties in proceeding further.
The idea is to use mouseenter/mouseleave events to show/hide a checkbox. If the checkbox is checked, deactivate the mouse and leave function to keep the checkbox visible.
You can find my code and demo here.