How to let onclick(); listens to more than one button
<p>I am trying to let Jq listen to three buttons at the same onclick method 
then trigger a function and call the clicked button by $(this);</p>

<p>here is a sample :</p>

<pre><code>$("body").on('click', 'a.home:visible', 'a.mobile:visible', 'a.phone:visible', function () {
        var attr = $(this).attr('attr');


        $(this).parents('.dropdown-menu').prev().prev().text(attr);
    });
</code></pre>