I have several folder icons that are created with the template:
<div id='folderTemplate' class="template openclosed_folder_icon subfolder" style="position:absolute; top:'30'; left:'100';">
<img class="folder_icon" src="images/folder_closed.png" alt="closed folder" />
<div class="folder_label" >name</div>
<img class='folder_redX' src='images/redX.png' alt='redX' title='Delete this gallery' />
The folders look like this:
If I left-click most folders, the e.target that comes into jQuery is the first <img> element, on line 2 above. And if I right-click these folders with Chrome Debugging turned on, to inspect them, the element selected is this first <img> element. But one of the folders gives me the outer div, at line 1, when I left click it or right-click it. Does anyone have an idea what's going on? What controls which element is actually selected by a left or right click?