I came across this concept while reading “JQuery in Action”. I am on chapter 1 and the language and explanations given are excellent. (i.e. once can easily understand)
My understanding for it is:
It is a way to separate the behavior from the structure. Instead of clubbing the event behavior within HTML tags, we can use JQuery selectors to select the HTML element and apply the event behavior through script.
HTML pages, either as attributes of HTML elements (such as onclick) or in script
blocks placed within the body of the page, are considered as correct.”
clear separation of responsibilities within a web application, doesn’t come without