Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(function() {
- $("#dialog-form1").dialog({
- autoOpen: false,
- title: "jQuery-UI Dialog",
- modal: true,
- width: "640",
- buttons: [{
- text: "Close Dialog",
- click: function() {
- $( this ).dialog( "close" );
- }}]
- });
- $( "#delete-user1" )
- .button()
- .click(function() {
- $( "#dialog-form1" ).dialog( "open" );
- });
- });
- </script>
- <div id="dialog-form1"><p>Are you sure you want delete user #1?</p></div>
- <script>
- $(function() {
- $("#dialog-form2").dialog({
- autoOpen: false,
- title: "jQuery-UI Dialog",
- modal: true,
- width: "640",
- buttons: [{
- text: "Close Dialog",
- click: function() {
- $( this ).dialog( "close" );
- }}]
- });
- $( "#delete-user2" )
- .button()
- .click(function() {
- $( "#dialog-form2" ).dialog( "open" );
- });
- });
- </script>
- <div id="dialog-form2"><p>Are you sure you want delete user #2?</p></div>
- #1 <a href="#" class="mws-tooltip-s" id="delete-user1" title="Delete user"><img src='page_white_delete.png'></a><br/>
- #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