How can I make a click event work on more than one selector?
<p>I have this code:</p>

<pre><code>        $("#menu").on('click', 'a', function (event) {

            javascript code
            ...
        });

        $("#home").on('click', 'a', function (event) {

            javascript code
            ...
        });
</code></pre>

<p>Is there some way I can combine these two as the javascript code for both is the same?</p>
