I've been trying to tweak things a bit to get this to work and so far I haven't been able to use jquery to check a div
's left margin and on the condition it is in the left: 0px
position, to output whatever action, in my case to apply opacity to a separate div. Here's my jfiddle. In the jfiddle I want to check the gray div "trim", and on the condition it has marginLeft: 0px
, to apply the opacity to the div "l1". Let me know if I need to explain this more.
3858 次