Is there any way in jQuery to get the current cursor-position in an text input without doing ugly browser specific code?
Like in:
<input id="myTextInput" type="text" value="some text" >
the cursor being after the "x" of "some text", I can get "8"?