Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. <script type="text/javascript">
  2. $('#myPopup').dialog();
  3. </script>
  4.  
  5. <html lang="en">
  6. <head>
  7. <title>Test</title>
  8. <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.0.js"></script>
  9. <script type="text/javascript" src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
  10. <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/humanity/jquery-ui.css">
  11. <script type="text/javascript">
  12. // when the document has loaded..
  13. $(document).ready(function() {
  14. // turn this ID into a dialog
  15. $('#popupTest').dialog();
  16. // also, turn the input type="button" into a jQuery UI Button
  17. // for consistency
  18. $('#btnRandom').button();
  19. });
  20. </script>
  21. </head>
  22. <body>
  23. <div id="popupTest" title="Stackoverflow Example">
  24. <p>Hello, world.</p>
  25. <p>Care for a cup of tea?</p>
  26. <input type="text" value="" placeholder="sample input form">
  27. <input id="btnRandom" type="button" value="this button does nothing... yet">
  28. </div>
  29. </body>
  30. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement