Add class on click then remove a class when clicking outside the div?
4955
How do I detect a click outside an element?
20332
Submit form using a button outside the  tag
33170
How to getElementByClass instead of GetElementById with JavaScript?
243
Event binding on dynamically created elements?
147880
jQuery Add and Remove Class
60919
Delay HTML5 :invalid pseudo-class until the first event
46451
Click event doesn't work on dynamically generated elements
138148
How to have click event ONLY fire on parent DIV, not children?
25223
How to add click event to an element?
92185
How do I make a div element editable (like a textarea when I click it)?
3300
jquery trigger function when element is in viewport
154054
How do you override inline onclick event?
52070
jquery show / hide div on click?
88315
Assigning classes to elements through CSS
131419
How to add onload event to a div element
101258
Dynamically Adding/Removing CSS in Nested Div
133139
How do I add a css class to an Div element in JQuery?