adding multiple values in a text box on click of a button
<pre><code>&lt;tr&gt;
        &lt;td&gt;&lt;font face="Arial"&gt;Answers&lt;/font&gt;&lt;/td&gt;
        &lt;td&gt;
        &lt;div id="answers" &gt;
            &lt;input type="text" name="T2" size="20" id="answer" class="selector"&gt;
        &lt;/div&gt;
        &lt;input type="button" value="+" name="B3" id="btnAnswer" onclick="addAnswers()"&gt;
        (click on this button will create another field so you can type content
        for the other answer, this can be done using jquery)&lt;br&gt;

        &lt;input type="checkbox" name="c" value="1"&gt;Allow this answer to be free text

        &lt;/td&gt;
    &lt;/tr&gt;      
</code></pre>

<p>function addAnswers(){</p>

<pre><code>$('#answers').append('&lt;p class="\selector\"&gt;' + $('#answer').val() + '&lt;/p&gt;'); } 
</code></pre>

<p>Now I want to get thses values of answers to send it to the server..the no of answers could be 1 to n...</p>
