3 ms·
As far as I know jQuery is written with "native API", so there is obviously a way to do this in JavaScript. document.body.addEventListener("click", functio
by gildas 14y ago
As far as I know jQuery is written with "native API", so there is obviously a way to do this in JavaScript.
document.body.addEventListener("click", function(e) {
if (e.target.className == "clicky") {
doSomething();
}
}, false);