0

This is quite hard to explain....

I'm using a framework that displays statusbar (display: none/block) after the page have been loaded (javascript).

Is there a way to "live" check if there's changes in that specific selector?

2 Answers 2

1

If you're asking to be triggered when css property change, take a look at this similar question : Event detect when css property changed using Jquery.

The posted solution propose to use a trigger on "DOMAttrModified". But be careful if this answer fit your needs about browser compatibility.

Sign up to request clarification or add additional context in comments.

Comments

0

Do you mean like:


$(document).ready(function() {
  if($("#yourElement").is(":visible")) {
    //is visible
  }
  else {
    //none
  }
});

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.