default.html 897 B

12345678910111213141516171819202122232425262728293031323334
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>jQuery UI Button - Default functionality</title>
  6. <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
  7. <script src="../../jquery-1.10.2.js"></script>
  8. <script src="../../ui/jquery.ui.core.js"></script>
  9. <script src="../../ui/jquery.ui.widget.js"></script>
  10. <script src="../../ui/jquery.ui.button.js"></script>
  11. <link rel="stylesheet" href="../demos.css">
  12. <script>
  13. $(function() {
  14. $( "input[type=submit], a, button" )
  15. .button()
  16. .click(function( event ) {
  17. event.preventDefault();
  18. });
  19. });
  20. </script>
  21. </head>
  22. <body>
  23. <button>A button element</button>
  24. <input type="submit" value="A submit button">
  25. <a href="#">An anchor</a>
  26. <div class="demo-description">
  27. <p>Examples of the markup that can be used for buttons: A button element, an input of type submit and an anchor.</p>
  28. </div>
  29. </body>
  30. </html>