Confirm Box for user choice in jQueryConfirmation box can be show to the user to confirm the action. Before deleting or updating any records we may want user to remind again for the action.
We will display one dialog box with two options, Yes and No. Based on the user selection by pressing the buttons we can run different part of the script to complete the process.
Let us start with a simple confirmation box where user action is displayed as message.
Initialize the dialog boxWe can manage different properties of the dialog box here.
Callback functionThis is where we will execute our script based on the user choice. Any record deletion or updating action can be posted to backend script by using Load, GET or Post here.
Opening the dialog boxInside click function of the button we have kept our code to open the dialog box.
Full code you can get in above demo page.
This article is written by plus2net.com team.