what is the best way to do this in jQuery? This should be a fairly common use case.
- User selects text in a textarea
- He clicks on a link
- The text in the link replaces the selected text in the textarea
Any code will be much appreciated - I am having some issues with part 3.