Just add the following javascript snippet to your JS file
$(document).ready(function () {
$(".click_box").click(function(){
$("a:first", $(this)).trigger("click");
});
});
Ommit the onload initializer if already implemented
Here is a usage example: A click anywhere in this div container will trigger a click-event on the first occuring link in this container.
<div class="click_box">
<a href="some_page.html">On this link the click-event will be triggered, because it’s the first in the click_box container</a>
<img src="someimage.png" alt="even a click on an image will trigger the click-event on the frist occuring link in the click_box container" />
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.</p>
</div>
Because this solution is based on a class, multiple “click boxes” on one page are possible