I'm implementing this menu for multiple elements like this:
The elements are created dynamically in javascript.
Do I need to recreate the html for each element ( this is how I'm doing it now ). Or is there an easier way to use the same html for each element.
One thought was to inject the html when the user clicks on the star.
The other thought was to use some positioning mechanism.