I have a form wizard. On step one I need to display a warning if a certain checkbox is checked and others with a certain class aren't . The problem is that it displays the confirm/warning on the second step after hitting the next button. I need it to prevent the browser from moving to the second step while displaying the warning.
$("#step0Next").live('click', function(event) {
var ask = confirm("Do You Really Want To Continue");
if($("#RT").is(":checked") && !$(".ex").is(':checked') &&
(ask===false)) {
event.preventDefault();
}
});
http://www.kinetick.com/Test/purchaseTest If you don't make any selections and hit "Next" ("#step0Next") it goes to step 2 with the confirm dialog. I need that to happen on step 1, pressing cancel would keep you there, hitting OK would allow you to continue onto step 2. Im using the formToWizard.js plug in if that matters.
thanks!