Some problems with post request
<p>I still have some problems with jquery. If i have html like this:</p>

<pre><code>&lt;form method="post"&gt;
    &lt;textarea id="id_content" rows="10" cols="40" name="content"&gt;&lt;/textarea&gt;
    &lt;input id="yes" type="submit" value="submit"&gt;
&lt;/form&gt;
&lt;form method="post"&gt;
    &lt;textarea id="id_content" rows="10" cols="40" name="content"&gt;&lt;/textarea&gt;
    &lt;input id="no" type="submit" value="submit"&gt;
&lt;/form&gt;
&lt;form method="post"&gt;
    &lt;textarea id="id_content" rows="10" cols="40" name="content"&gt;&lt;/textarea&gt;
    &lt;input id="question" type="submit" value="submit"&gt;
&lt;/form&gt;
</code></pre>

<p>Why i can't succes post request with this jqeury code?</p>

<pre><code>$(function(){
    $('input').live('click', function(){
        if ($(this).attr('id') == 'yes'){
            var url = 'www.example.com/add_yes/' 
        } if ($(this).attr('id') == 'no'){
            var url = 'www.example.com/add_no/' 
        } else {
            var url = 'www.example.com/add_question/'} 

    var form = $('.' + $(this).attr('id'))
    var textarea = form.$('texarea[name="content"]').text().serialize()

    $.ajax({
    type: 'POST',
    url: url,
    data: textarea,
    success: succes,         
    dataType: 'json'
    })})})
</code></pre>

<p>And here is this code in jsfiddle <a href="http://jsfiddle.net/3r9BL/" rel="nofollow">http://jsfiddle.net/</a></p>
