Loop over elements in jQuery when element is double clicked
<p>I'm new to jQuery and Javascript.  I'm trying to make a button that I can double click which then loops through all elements in the webpage with a certain class and fades them.</p>

<p>Currently, I'm trying this:</p>

<pre><code>$(".fadeall").dblclick(function() {
    $("div.section").each(function(idx,item) {
        item.fadeTo(25,inactiveOpacity);
    });
});
</code></pre>

<p>In my debugger I see the double click happening, but the function in the <code>each</code> call is not being triggered.</p>

<p>I'm believe I'm not matching the <code>div.section</code> elements correctly, but don't know the correct approach.</p>
