Jquery .change function not triggering
<p>I was just wondering why doesn't this script works? I'm trying to get the value of the selected (one or many items) options in a SELECT MULTIPLE. What is missing?</p>

<p>Thanks</p>

<pre><code>&lt;script type="text/javascript" src="js/jquery-1.7.1.min.js"&gt;&lt;/script&gt;
&lt;script&gt;

$('#ooo').change(function() {
    var foo = []; 

    $('#ooo :selected').each(function(i, selected){         
      foo += $(selected).valueOf(); 
    });

    alert(foo);
    //$("#test").text(str);
});

&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;select name="test" id="ooo" multiple="multiple"&gt;
    &lt;option value="1"&gt;test&lt;/option&gt;
    &lt;option value="2"&gt;bbbb&lt;/option&gt;
    &lt;option value="3"&gt;aaaa&lt;/option&gt;
    &lt;option value="4"&gt;xxx&lt;/option&gt;
    &lt;option value="5"&gt;zzz&lt;/option&gt;
&lt;/select&gt;
</code></pre>
