Self read elements in $.on, $.html and other
ange007 opened this issue · 3 comments
ange007 commented
It would be good if elements were read out by a call of $ .on(), $ .html() and others.
As now it very much spoils a code.
$.html($ .s(".todo-list"), localStorage.getItem("todos"));
$.all($ .s(".toggle"), function(el) {});
arguiot commented
I don’t really understand your point, could you develop please?
ange007 commented
I speak about an opportunity to write:
$.html(".todo-list", '<...>');
$.all(".toggle", function(el) {});