Seperate by line in jquery and post
<pre><code>Html:
&lt;textarea id="game" type="text" class="resizedTextbox"/&gt;&lt;/textarea&gt;
&lt;input id="times" type="text" class="resizedTextbox" value=1&gt;
&lt;textarea id="info" type="text" class="resizedTextbox"/&gt;&lt;/textarea&gt;

JS:
$(document).ready(function()
{
    $('#game').change(UpdateInfo);
    $('#times').change(UpdateInfo);
});

   function UpdateInfo()
   {
          var times = $('#times').val();
         var game = 
             $('#game').val();
     var line = 'Play ' + game + " " + times
     var info ="Games \n" + line;
     $('#info').val(info);
   }
</code></pre>

<p>I've also provided a <a href="http://jsfiddle.net/Wfzr8/" rel="nofollow">jsFiddle demo</a> of the above code.</p>

<p>Now i am stuck at here:</p>

<p>When i type this in text box 1:</p>

<pre><code>1Text
2Text
</code></pre>

<p>i want it to appear as this in text box 2</p>

<pre><code>Games 
Play 1text 1
Play 2text 1
</code></pre>

<p>Now,how can i do it?</p>
