I've been experimenting with various adjustments in an attempt to make this work, but so far I have not succeeded in using jQuery to verify the left margin of a div
. Specifically, I am trying to check if it is positioned at left: 0px
, and if so, trigger a specific action - in my case, applying opacity to a different div. You can view my code on JSFiddle. In this example, I want to examine the gray div called "trim" and if its marginLeft
property equals 0 pixels, then apply the opacity effect to the div named "l1". Let me know if you require further clarification.