I have a div tag and it has a link tag inside it as shown in the code. The link works only when I click on it. But I want to code in such a way that even when I click on div tag, it should go to the link. Please help as I am a beginner in javascript.
<div id="blockbuilding">
<a id="@data.bbuildingid" href="@Url.Action("Overview","Overview", new{BuildingId=@data.buildingID})" class="buildingAnchor""> @data.buildingName </a>
</div>