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
loop over all you input fields... finding the one that has focus.. then once you have your text area... you should be able to do something like...
myTextArea.value = 'text to insert in the text area goes here';