Step 1: Add the following jQuery snippet to your JS file
$(function(){
$("[data-hide]").on("click", function(){
$("." + $(this).attr("data-hide")).hide();
});
});
Step 2: Add data-hide=[CLASS_NAME] as attribute to any HTML tag to hide that element on click.