I have a page with a lot of textboxes. When someone clicks a link, i want a word or two to be inserted where the cursor is, or appended to the textbox which has the focus.<
This jQuery plugin gives you a pre-made way of selection/caret manipulation.