I have this code:
$("#menu").on('click', 'a', function (event) {
javascript code
...
});
$("#home").on('click', 'a', function (event) {
javascript code
...
});
Is there some way I can combine these two as the javascript code for both is the same?
1 Answer