I have the following HTML structure:
<p>Hello world!</p>
If i clicked on the 'w' character using a mousedown jQuery event, how can i convert the e.pageX to the correct character position inside the paragraph element?
I have the following HTML structure:
<p>Hello world!</p>
If i clicked on the 'w' character using a mousedown jQuery event, how can i convert the e.pageX to the correct character position inside the paragraph element?