display confirm if no checkboxes checked
<p>Ive tried a lot of things for this, but can't seem to get it to work as desired. It either displays the confirm dialog all the time or not at all. I have 10 checkboxes with the class of "ex" if none of them are checked when you click the "next" button ("#step0Next") I want it to display a confirm dialog.</p>

<pre><code>$("#step0Next").live('click', function(event) {
    $('#step1Prev').click();  //go back to step 1
    if($('.ex').is(":not(:checked)")) { //my conditions for popping confirm dialog

    if(!confirm("You have not selected an exchange(s). If you continue, all streaming market data will be delayed by ten minutes excluding market metrics which will be real time. Press'OK' to continue or 'Cancel' to add an exchange(s).")) return; //user clicks OK
    $('#step0Next').die('click');
}
$(this).triggerHandler('click'); //make #step0Next behave as usual after clicking OK
        });
</code></pre>
