I want to check if an element has the class .active, if it does add: margin-top: 4px;

However I only want this to occur once, when the page loads, once the class has been detected I don't want to detect it again and add the CSS style.

This class is applied when certain elements are hovered over.

Is this possible in jQuery?

Edit
Report