query: .addClass() not working outside of JS Fiddle
positive_passages.docid: 144051
positive_passages.text: Code works in fiddle, but not on webpage
negative_passages.docid: 116107
negative_passages.text: hide div if clicked outside of it
negative_passages.docid: 32147
negative_passages.text: Remove CSS class from element with JavaScript (no jQuery)
negative_passages.docid: 24099
negative_passages.text: jQuery Class selector not working
negative_passages.docid: 32999
negative_passages.text: How do I add a class to the HTML "body" tag programmatically?
negative_passages.docid: 14899
negative_passages.text: Manually adding / loading jQuery with PrimeFaces results in Uncaught TypeErrors
negative_passages.docid: 146804
negative_passages.text: How to add a class to the image tag
negative_passages.docid: 36511
negative_passages.text: Determine if an element has a CSS class with jQuery
negative_passages.docid: 56350
negative_passages.text: window.open not working when attached on onload event in chrome and safari
negative_passages.docid: 58228
negative_passages.text: How can I replace one class with another on all elements, using just the DOM?
negative_passages.docid: 13905
negative_passages.text: Setting CSS pseudo-class rules from JavaScript
negative_passages.docid: 4955
negative_passages.text: How do I detect a click outside an element?
negative_passages.docid: 154160
negative_passages.text: How do I write 'if not clicked' or 'if clicked outside element', using Jquery?
negative_passages.docid: 123237
negative_passages.text: Class methods as event handlers in JavaScript?
negative_passages.docid: 48378
negative_passages.text: How can I select an element with multiple classes in jQuery?
negative_passages.docid: 153275
negative_passages.text: How can I change the class of an element with jQuery>
negative_passages.docid: 64428
negative_passages.text: How to use getElementsByClassName in javascript-function?