Skip to content

Commit

Permalink
Button: quote the value when searching for attributes.
Browse files Browse the repository at this point in the history
Fixes #5262 - Buttonset not working on inputs with Arrays in name Attribute.

Thanks Zidane.
  • Loading branch information
scottgonzalez committed Mar 4, 2010
1 parent 301eb30 commit b636ad6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/jquery.ui.button.js
Expand Up @@ -89,9 +89,9 @@ $.widget( "ui.button", {
radios;
if ( name ) {
if ( form ) {
radios = $( form ).find( "[name=" + name + "]" );
radios = $( form ).find( "[name='" + name + "']" );
} else {
radios = $( "[name=" + name + "]", radio.ownerDocument )
radios = $( "[name='" + name + "']", radio.ownerDocument )
.filter(function() {
return !this.form;
});
Expand Down

0 comments on commit b636ad6

Please sign in to comment.