I have a button click event which has to do some validation and if one of the validation fails then confirm with the user whether he wants to continue anyway.
Please help to show the confirmation box and based on the user input the server side event should complete.
validate(); //SERVER SIDE EVENT
if(some validate fails)
if(conf == OK)
//do something and complete server side event
else if (conf == CANCEL)
// do something else and return
View Complete Post