Jquery UI

出自TSK WIKI
跳至導覽 跳至搜尋

起手式

<vb>

 <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
 <link rel="stylesheet" href="/resources/demos/style.css">
 <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
 <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

</vb>

Dialog-confirm

<vb>

 $( function() {
   $( "#dialog-confirm" ).dialog({
     resizable: false,
     height: "auto",
     width: 400,
     modal: true,
     buttons: {
       "Delete all items": function() {
         $( this ).dialog( "close" );

alert("delete");

       },
       ffCancel: function() {
         $( this ).dialog( "close" );

alert("close");

       }
     }
   });
 } );

These items will be permanently deleted and cannot be recovered. Are you sure?

</vb>