Skip to content

Commit e37f599

Browse files
committed
Don't use :submit selector.
1 parent 8b17f68 commit e37f599

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

demos/button/default.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link rel="stylesheet" href="../demos.css">
1212
<script>
1313
$(function() {
14-
$( "input:submit, a, button", ".demo" ).button();
14+
$( "input[type=submit], a, button", ".demo" ).button();
1515
$( "a", ".demo" ).click(function() { return false; });
1616
});
1717
</script>
@@ -22,7 +22,7 @@
2222

2323
<button>A button element</button>
2424

25-
<input type="submit" value="A submit button"/>
25+
<input type="submit" value="A submit button">
2626

2727
<a href="#">An anchor</a>
2828

ui/jquery.ui.button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ $.widget( "ui.button", {
357357
$.widget( "ui.buttonset", {
358358
version: "@VERSION",
359359
options: {
360-
items: "button, [type=button], :submit, [type=reset], [type=checkbox], [type=radio], a, :data(button)"
360+
items: "button, [type=button], [type=submit], [type=reset], [type=checkbox], [type=radio], a, :data(button)"
361361
},
362362

363363
_create: function() {

0 commit comments

Comments
 (0)