function validateData(form){
jConfirm('Would you like Ice Cream', 'msgBox Title', function(r){
if(r){
alert('you replied yes!');
}else{
alert('you replied no!');
return false;
}
});
if(!checkSearchCriteria(form)){
return false;
}
// SUBMIT FORM HERE
}
function checkSearchCriteria(form){
// some checjing
}
whenever my button are triggered to call validateData method, it doesnt stop at wait at jConfirm but instead it will proceed to next lines of the codes. How to make the Jquery confirm act like an normal confirm, in which it will wait user input before proceeding to next line? urgent help needed please!!!