Jquery get .val
<p>What I need is the "this" value of</p>

<pre><code>( $(this).attr("value")); 
</code></pre>

<p>to show up in the "this" of</p>

<pre><code>$("#activities_" +btn_id).val($(this).val());
</code></pre>

<p>Here is the code.</p>

<pre><code>$('.thoughts_list').click(function(){
    ( $(this).attr('id'));
    ( $(this).attr("value"));
}); 
    $('#close_thoughts').click(function(){

    $("#activities_" +btn_id).val($(this).val());   
}); 
</code></pre>

<p>Currently, the value that is returned is "Cancel", which is the value of the "#close_thoughts", instead I need the value of the clicked ".thoughts list"</p>

<p>ANSWERED, apperantly this is what i was looking for.</p>

<pre><code>$('.thoughts_list').click(function(){
    ( $(this).attr('id'));
    ( $(this).attr("value"));
}); 
    $('#close_thoughts').click(function(){

    $("#activities_" +btn_id).val($('input[name=thoughts_list]:checked').val());    
}); 
</code></pre>
