jQuery Tutorial


jQuery Example


jQuery References


jQuery CSS position() Method Reference


  jQuery CSS method References


Uses

jQuery position() method returns the relative position for selected element.


Syntax

$(selector).position()

jQuery CSS position() method Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("button").click(function(){
    Page=$("p").position();
    $("span").text("LeftSide Position: " + Page.left + ", 
    TopSide Position: " + Page.top);
  });
});
<script>
Online Try This Code Your Self....   »

  jQuery CSS method References