[b][/b]
Now this works fine, however it only inserts the tags at the end of the textarea, there are 2 more things i would like to achieve:
1. Insert the tags at the cursor position, rather the end of the textarea
2. If text is selected, rap the tags around the text.
Help would be greatly appreciated