You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: demos/button/default.html
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,10 @@
11
11
<linkrel="stylesheet" href="../demos.css">
12
12
<script>
13
13
$(function(){
14
-
$(".widget input[type=submit], .widget a, .widget button")
15
-
.button()
16
-
.click(function(event){
17
-
event.preventDefault();
18
-
});
14
+
$(".widget input[type=submit], .widget a, .widget button").button();
15
+
$("button, input, a").click(function(event){
16
+
event.preventDefault();
17
+
});
19
18
});
20
19
</script>
21
20
</head>
@@ -37,6 +36,8 @@ <h1>CSS Buttons</h1>
37
36
38
37
<divclass="demo-description">
39
38
<p>Examples of the markup that can be used for buttons: A button element, an input of type submit and an anchor.</p>
39
+
<p>Buttons can be styled via the button widget for by adding the classes yourself to avoid the javascript overhead if you dont need any of the methods provided by the button widget</p>p>
40
+
<p>Here you can see examples of both buttons styled with css only and done using the button widget</p>
0 commit comments