how to add text to radiobutton/checkbox at display in jquery?
<p>This code displays selected radio and checkbox values in text area.</p>

<pre><code>&lt;script&gt;
               $(':checkbox, :radio').change(function() {
    //clear textarea
    $('textarea').val('');

    //for every checked element
    $(':checked').each(function() {
        var $textarea = $('textarea');
        $textarea.val($textarea.val() + $(this).prop('name') + ' = ' + this.value + '\n' );
    });
});

           &lt;/script&gt;
</code></pre>

<p>I want to add some text to the checked values of radio and checkbox. Actually 
$(this).prop('name') + ' = ' + this.value gives apple = 1.
But my requirement is <strong>you have selected 1 time</strong>.
Can anyone please help me in this regard.
Thank you,
Ramsai.</p>
