Mapping the event position to the text position in non text-fields

Posted by flitzwald on Stack Overflow See other posts from Stack Overflow or by flitzwald
Published on 2010-05-24T16:47:35Z Indexed on 2010/05/24 16:51 UTC
Read the original article Hit count: 245

Filed under:
|

Is there a way to map an event such as a click-event on this element

<div>Just normal text</div>

to the position in the contained text ( "You just clicked the 6th character", when hitting the 'n' )?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery