Message from JavaScript discussions

November 2020

β€” Now I changed it to "header" in place of "body" and it works, but I need it on body, how come that one gets ignored?

Message permanent page


JQuery(document).ready(function () {

jQuery(document).ready(function () {

if(jQuery("#block-darkbgcontrol .dark-bg-control").hasClass("dark-bg") === true) {



This works. Is it bad practice to repeat jQuery(document).ready() ?

β€” πŸ˜…

β€” Stop saying.. words lol

β€” Remove the === true

β€” I think i got it, misan statement started a code philosophy party

β€” Same, doesn't work, unless I repeat the document ready.

β€” Ye, the responsibility to enforce the law and make peon obey the rules

β€” Did you put your code in the head or in the body?

β€” Stomping on reviewee neck

β€” Notes, banknotes🀀

β€” Using Drupal, it's in the body, if I'm not mistaken.