First you must wait for Dom to load since you are attaching event listener to Dom objects.
Then using convenient selector with jQuery attach the listener using
$({selector})
where selector can be id using {#} selector
$('#id-of-element')
or
class using dot selector - $('.class-of-element')
.
If you happen to be passing a reference to a function like in the code below you do not need parenthesis since the event itself will invoke the function.
e.g. [$('#hey').on('click', clickHandler)
] in your case [domElement.addEventListener('click', myFunction123);
]
Complete Example:
//Function that handles the event
function clickHandler(){
console.log('hey');
}
$(document).ready(function() {
//Id Selector using jQuery
$('#hey').on('click', clickHandler);
//Class Selector using jQuery
$('.what-you-can-do-btn').on('click', clickHandler)
})