I am using a jquery dialog, and what i want to implement is when user press \"ok“, the progamming keep going, when press \"cancel\", it stoped.
function dis
Take 2 buttons
Hide the button with id submit_hidden
. (may be via css dsiplay:none;)
And in jquery change the code
$("#confirm").dialog({
autoOpen:false,
buttons:{
"OK":function(){ $("#submit_hidden").click();
$(this).dialog("close"); },
"Cancel":function(){ $(this).dialog("close");}
}
});
Now you don't need to return anything.