aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demos/button/default.html4
-rw-r--r--ui/jquery.ui.button.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/demos/button/default.html b/demos/button/default.html
index 60d2674c0..90369f816 100644
--- a/demos/button/default.html
+++ b/demos/button/default.html
@@ -11,7 +11,7 @@
<link rel="stylesheet" href="../demos.css">
<script>
$(function() {
- $( "input:submit, a, button", ".demo" ).button();
+ $( "input[type=submit], a, button", ".demo" ).button();
$( "a", ".demo" ).click(function() { return false; });
});
</script>
@@ -22,7 +22,7 @@
<button>A button element</button>
-<input type="submit" value="A submit button"/>
+<input type="submit" value="A submit button">
<a href="#">An anchor</a>
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index f3abdaf76..0feb1e893 100644
--- a/ui/jquery.ui.button.js
+++ b/ui/jquery.ui.button.js
@@ -357,7 +357,7 @@ $.widget( "ui.button", {
$.widget( "ui.buttonset", {
version: "@VERSION",
options: {
- items: "button, [type=button], :submit, [type=reset], [type=checkbox], [type=radio], a, :data(button)"
+ items: "button, [type=button], [type=submit], [type=reset], [type=checkbox], [type=radio], a, :data(button)"
},
_create: function() {