mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Don't use :submit selector.
This commit is contained in:
parent
8b17f68b57
commit
e37f599a53
@ -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>
|
||||
|
||||
|
2
ui/jquery.ui.button.js
vendored
2
ui/jquery.ui.button.js
vendored
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user