title: Formatting text in dynamicaly created textboxes
body: <p>I have jquery that generates textareas with different id's. Now i need to make some buttons that will format text inside that textareas. For example: when user clicks in certain textarea, enter text, and click "bold" button, only text inside of that textarea will become bold (in other will be normal). I did manage to make something like this with JS, but it was too primitive (text was formated in all of textboxes) :(
  Here is some sample code for this:</p>
  
  <pre><code>&lt;button id="bold"&gt;B&lt;/button&gt;
  &lt;textarea id="ta_1"&gt;Some test text&lt;/textarea&gt;
  &lt;textarea id="ta_2"&gt;Some test text&lt;/textarea&gt;
  </code></pre>
  
  <p>What i want to say: one button, multiply text boxes. Entering text in ta_1 and clicking bold, should bold only text in that txtarea. Additional info: all id's starting with same word, just different number at the end.</p>
  
  <p>I feel there is some simple solution, just cant figure it out :D</p>