It is typical to use the HTML Element Properties window to bind jQuery events however, this is not the only available option and there may be circumstances in which it is preferable to bind a jQuery event from within a JavaScript Web Resource.
The HTML Element Properties window is suitable for usual jQuery bindings such as .on(‘click’) however there are many other possible binding and unbinding options available in jQuery. The documentation for these can be found here.
E.g. To bind jQuery click events to all hyperlinks in the page body, use the following code:
$("body").on("click", "a", function(){
alert("Clicked!");
});