diff options
author | TJ VanToll <tj.vantoll@gmail.com> | 2014-01-28 10:46:23 -0500 |
---|---|---|
committer | TJ VanToll <tj.vantoll@gmail.com> | 2014-01-28 10:58:30 -0500 |
commit | ccb13240dd8b5cfac0199a30dcec4a71cbe1b252 (patch) | |
tree | a873ab483e7ab3bc6575c591c7f4278e86c1242a /ui | |
parent | fa23894dffe81a80326e246cd87e4ebfd490c9f3 (diff) | |
download | jquery-ui-ccb13240dd8b5cfac0199a30dcec4a71cbe1b252.tar.gz jquery-ui-ccb13240dd8b5cfac0199a30dcec4a71cbe1b252.zip |
Button: Ignore non-radio elements with the same name
Fixes #8761
Closes gh-1185
Diffstat (limited to 'ui')
-rw-r--r-- | ui/button.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/button.js b/ui/button.js index 4b401e1a3..96fea440f 100644 --- a/ui/button.js +++ b/ui/button.js @@ -40,9 +40,9 @@ var lastActive, if ( name ) { name = name.replace( /'/g, "\\'" ); if ( form ) { - radios = $( form ).find( "[name='" + name + "']" ); + radios = $( form ).find( "[name='" + name + "'][type=radio]" ); } else { - radios = $( "[name='" + name + "']", radio.ownerDocument ) + radios = $( "[name='" + name + "'][type=radio]", radio.ownerDocument ) .filter(function() { return !this.form; }); |