I have an element which dynamically gets a "display:block". Now when this happens I’d like to add a class to another element. I know I have to delegate the code below somehow to the document. But I have no idea how to do this.
if ($(".status").css("display") == "block" ){
$("#Menu").addClass("reduced");
}