How to highlight a element when clicked.

How to highlight a element when clicked.

How can I get a highlight effect on the element that is clicked to show the user selected this entity?

I was thinking a right click effect. So when you right click an element 2 things will happen highlight the element and display a custom context menu.

I already have the custom context menu and it works  but I currently have it setup that when you right click an element it will generate a new div right over the element in question and will use the same width and height and location. So this div will be over the element and the background color is set to red but I  have it in alpha where is show transparent. 

However, the problem is that if I right click the element again it will grab this div that supposed to give the highlight effect. I don't want it to act like a new element. Is there a way to create a highlight effect of  the element without having to create a new div and overlapping that div over the element?