We have a functionalitiy that we want, like hide a element of html, but we want it to activate this functionality with two diferents buttons of the page.
It's correct to add a class to the buttons, for example "hideElement" with no css rules, and then in jquery make:
$(".hideElement").click(function(){
$("#elementToHide").hide();
});
Or it is incorrect or inelegant to add a css class with no css rules to the code?