How do you get left position of parent element

Posted by littleMan on Stack Overflow See other posts from Stack Overflow or by littleMan
Published on 2010-12-26T02:32:18Z Indexed on 2010/12/26 2:54 UTC
Read the original article Hit count: 208

Filed under:
|

I've tried using position.left it says invalid object i've tried css.('left') i don't really know what to do. I want to get the position of the parent element so I can animate the child element left position Im creating a scrolling effect.

<div id="MyDiv">
<div>Element 1</div>
<div>Element 2</div></div><div id="Prev">Prev</div><div id="Next">Next</div>

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery