title: Insert tag into textarea
body: <p>I'm developing my own forum software, and i am now doing the editor. 
  Well i want to make some tags ofc, like [b] and [i].</p>
  
  <p>How can i do that? Well, i found this thread: <a href="https://stackoverflow.com/questions/946534/insert-text-into-textarea-with-jquery">Insert text into textarea with jQuery</a> </p>
  
  <p>and used this:</p>
  
  <pre><code>$('a').click(function() //this will apply to all anchor tags
  { 
     $('#area').val($('#area').val()+'[b][/b]'); 
  })
  </code></pre>
  
  <p>But i also want to point just right between the tags, between the [b] and the [/b], how can i do that?</p>