Confirm Box for user choice in jQuery
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.
|Most Popular JQuery Scripts|
|Two dependant list boxes|
|Calendar with Date Selection|
|Data change by Slider|
|Show & Hide element|