Reputation: 17373
Greetings,
Is there any way to show JQuery Nice Confirm Dialog Box in MVC, which shows: 1. All the input fields content that user has filled. 2. Selected radio button value and name 3. Selected Checkboxes value and name
Once the user confirms 'Yes' commit to database else return back to form.
Thanks heaps.
Upvotes: 2
Views: 4265
Reputation: 522
Create a div which contains all your confirmation messages.
<div id="dialog-confirm" title="Confirmation Dialog" style="display:none">Messages... </div>
Then initialize a dialog with the div id using following script.
<script>
$(function() {
$( "#dialog-confirm" ).dialog({
resizable: false,
height:140,
modal: true,
buttons: {
"Yes": function() {
//Function call to commit to database
},
"No": function() {
$( this ).dialog( "close" );
}
}
});
});
Upvotes: 3