Jquery set enter key textarea in My Code
<p>I have an Jquery submit textarea, now I want to set textarea submit without button submit. Just using enter key.</p>

<pre><code>&lt;textarea id="ctextarea"&gt;&lt;/textarea&gt;
</code></pre>

<p>Here it's the JS :</p>

<pre><code>$('.comment_button').live("click",function() 
{
    var ID = $(this).attr("id");
    var uid = $("#uid").val();
    var comment= $("#ctextarea"+ID).val();
    var dataString = 'comment='+ comment + '&amp;msg_id=' + ID + '&amp;uid=' + uid;

    if(comment=='')
    {
    $('#ctextarea').html("").fadeIn('slow');
    $("#ctextarea"+ID).focus();
    }
    else if (!$.trim($("#ctextarea"+ID).val()))
    {
        $("#ctextarea"+ID).focus();
    }
    else
    {
    $.ajax({
    type: "POST",
    url: "comment_ajax.php",
    data: dataString,
    cache: false,
    success: function(html){
    $("#commentload"+ID).append(html);
    $("#ctextarea"+ID).val('');
    $("#ctextarea"+ID).focus();
     }
 });
}
return false;
});
</code></pre>

<p>I already search the tutorials and found, but I confused where can I put the code in My JS code.</p>

<p>Someone can give the idea ?
Thanks for helps.</p>
