I want to insert some special characters at the caret inside textboxes using javascript on a button. How can this be done?
The script needs to find the active textbo
I'm not sure if you can capture the caret position, but if you can, you can avoid Jason Cohen's concern by capturing the location (in relation to the string) using the text box's onblur event.
onblur