addClass work only on  elements that is in html file
243
Event binding on dynamically created elements?
48378
How can I select an element with multiple classes in jQuery?
25813
add active class to li from page url
29239
Event handler not working on dynamic content
150418
jquery does div contain children of a certain class
37301
Include another HTML file in a HTML file
86869
How to highlight last html-element with specific css class
133139
How do I add a css class to an Div element in JQuery?
144051
Code works in fiddle, but not on webpage
13866
How to change/remove CSS classes definitions at runtime?
128251
Where to place JavaScript in an HTML file?
32999
How do I add a class to the HTML "body" tag programmatically?
19467
"document.getElementByClass is not a function"
41373
Why does this work in jsfiddle but not in my document
141743
What is the best way to conditionally apply a class?
153275
How can I change the class of an element with jQuery>
91038
document.getElementsByClassName().innerHTML always returns "undefined"