I have a bunch of validation javascript processes with confirms. I want to use jquery ui dialog, but I need to return true for the rest of the validation processes.
For example:
var where_to_coupon = confirm(pm_info_msg_013);
if (where_to_coupon== true) {
doSubmit=true;
return doSubmit;
So I need a function to replace confirm with a UI dialog, pull the message string (pm_info_msg_013), and use my own buttons or UI buttons to return true for the validation process.
Not sure where to start with this one.
help?
In jQuery UI dialog, set the
modaloption to true, and specify primary and secondary user actions with thebuttonsoption.See the demo here: http://jqueryui.com/demos/dialog/#modal-confirmation
Update:
This will allow you to create multiple confirms. Usage: