Line | |
---|
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.8.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 | |
---|
24 | <button>A button element</button> |
---|
25 | |
---|
26 | <input type="submit" value="A submit button"> |
---|
27 | |
---|
28 | <a href="#">An anchor</a> |
---|
29 | |
---|
30 | <div class="demo-description"> |
---|
31 | <p>Examples of the markup that can be used for buttons: A button element, an input of type submit and an anchor.</p> |
---|
32 | </div> |
---|
33 | </body> |
---|
34 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.