In Firefox, you can simply call:
myInputTextField.selectionStart or myInputTextField.selectionEnd
to get the first and last indices of the selected text in the input box.
In IE, I know that you can call document.selection.createRange() to fiddle with the selection a little bit. For the life of me, however, I have not found any value that represents that character offset within the selection.
Am I missing something? Is there any way to get the same value in IE?
Thank you!
Alex