Advertisement
Guest User

Untitled

a guest
Dec 30th, 2012
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.30 KB | None | 0 0
  1.  
  2. <script>
  3.     $(function() {
  4.     $("#dialog-form1").dialog({
  5.         autoOpen: false,
  6.         title: "jQuery-UI Dialog",
  7.         modal: true,
  8.         width: "640",
  9.          buttons: [{
  10.                 text: "Close Dialog",
  11.                 click: function() {
  12.                     $( this ).dialog( "close" );
  13.                 }}]
  14.     });
  15.        
  16.        
  17.  
  18.         $( "#delete-user1" )
  19.             .button()
  20.             .click(function() {
  21.                 $( "#dialog-form1" ).dialog( "open" );
  22.             });
  23.     });
  24. </script>
  25. <div id="dialog-form1"><p>Are you sure you want delete user #1?</p></div>  
  26.  
  27. <script>
  28.     $(function() {
  29.     $("#dialog-form2").dialog({
  30.         autoOpen: false,
  31.         title: "jQuery-UI Dialog",
  32.         modal: true,
  33.         width: "640",
  34.          buttons: [{
  35.                 text: "Close Dialog",
  36.                 click: function() {
  37.                     $( this ).dialog( "close" );
  38.                 }}]
  39.     });
  40.        
  41.        
  42.  
  43.         $( "#delete-user2" )
  44.             .button()
  45.             .click(function() {
  46.                 $( "#dialog-form2" ).dialog( "open" );
  47.             });
  48.     });
  49. </script>
  50. <div id="dialog-form2"><p>Are you sure you want delete user #2?</p></div>  
  51. #1 <a href="#" class="mws-tooltip-s" id="delete-user1" title="Delete user"><img src='page_white_delete.png'></a><br/>
  52. #2 <a href="#" class="mws-tooltip-s" id="delete-user2" title="Delete user"><img src='page_white_delete.png'></a><br/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement