jQuery set html() value
<p><strong>HTML</strong></p>

<pre><code>&lt;select class="selectAddress" name="select2" size="4" multiple="multiple"&gt;
    &lt;option&gt;address 1&lt;/option&gt;
    &lt;option&gt;address 2&lt;/option&gt;
    &lt;option&gt;address3, some city, uk&lt;/option&gt;
    &lt;option&gt;address4, some city, uk&lt;/option&gt;
    &lt;option&gt;address4, some city, uk&lt;/option&gt;
&lt;/select&gt;

&lt;p id="chosenAddress01" class="renderedYellowBox"&gt;result in here&lt;/p&gt;
</code></pre>

<p><strong>jQuery</strong></p>

<pre><code>$(".selectAddress").dblclick(function() {
var address = [];
    $('.selectAddress option:selected').each(function(i, selected){ 
       address[i] = $(selected).text(); 
    });
    //alert(address);

    $('#chosenAddress01').html(address);
    });
</code></pre>

<p><strong>Problem</strong></p>

<p>I'm trying to get the selected value of the address option to populate the p tag on dblclick() of the address</p>

<p>If I use the alert box to check the result, the correct result comes thru. But trying to get the result into the p tag returns nothing.</p>

<p>Can anyone help?</p>

<p>Thanks,
Kevin</p>
