Similar to the effect of deletion, before the implementation of the general need to add Confirmation dialog box, click to confirm the execution of the cancellation button will not execute, the traditional JS
if (confirm) (' OK delete? '))
{
//execute code
}
This is an ugly effect, using jquery mobile to optimize
Files to refer to:
<script src= "~/scripts/jquery-1.10.2.min.js" ></script>
<link href= "~/scripts/mobile/jquery.mobile-1.4.0.min.css" rel= "stylesheet"/>
<script src= "~/scripts/mobile/jquery.mobile-1.4.0.min.js" ></script>
The effect is as follows:
function UpdateStatus () {var popupdialogid = ' Popupdialog '; $ (' <div data-role= "popup" id= "' + Popupdialogid + '" data-confirmed= "no" data-transition= "Pop" data-overlay-theme= "b "Data-theme=" B "data-dismissible=" false "style=" min-width:216px;max-width:500px; > \ <div role= "main" class= "Ui-content" >\
The above is a small series for everyone to bring the jquery mobile implementation of the custom Confirm confirmation box effect of a simple example of all the content, I hope that we support the cloud-Habitat Community ~