I have a confirmation dialogue that pops after you hit ("#step0Next") on a form wizard. Currently it pops after you hit the button on the next step. I need it to pop when you hit the button on THAT step (step 1) not when it goes to step 2. How do I stop the default action of the button until the user click's "OK" in the dialogue?
$("#step0Next").live('click', function(event) {
event.preventDefault();
if($("#RT").is(":checked") && !$(".ex").is(':checked')) {
return confirm ('foo');
//alert("You have not selected any exchanges for which to receive real time market data from. If you continue, you will only receive real time data for market metrics and ten minute delayed data for everything else. Do you wish to continue?");
$(this).die('click');
}
});