User665608656 posted
Hi acmedeepak,
According to your requirements, do you just need to judge the a tag that contains the attribute of href? If it's only '#', then clear the content of the corresponding div. Otherwise, the div will show the corresponding module?
If so, I suggest that you only need to get the click events of all a tags in jQuery, and judge whether the href attribute of the currently clicked a tag is '#'. If it is '#', clear the corresponding div content.
$(document).ready(function () {
$("a").click(function () {
var value = $(this).attr("href");
if (value != undefined) {
if (value == "#") {
$("#displayRelatedContent").empty();
} else {
$("#displayRelatedContent").html("new content");// here you can show what you want
}
}
});
});
Here is the result of this work demo:

Best Regards,
YongQing.