how do i get the first line offset of inline elements with multiple line?

how do i get the first line offset of inline elements with multiple line?

Hello,

I need some help for getting first line coordinates of multiple line inline element.

Example HTML
  1. aaa bbb ccc ddd <span id="target">eee fff ggg
  2. hhh iii jjj</span>kkk lll mmm nnn ooo ppp qqq

  1. $(document).ready(function() {
  2.         $(#target).click(function(){
  3.                 alert($(this).offset().left);
  4.         });
  5. });
Assume that span#target has a line break, when I see a browser. Then I click span#target, above function returns the head of coordinates which second line ("hhh") has. I want to have the coordinates which first line ("eee") has.
How can I get that?