From b636ad6997941ab6a1891fb90454096285adc1e1 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 4 Mar 2010 02:00:32 +0000 Subject: Button: quote the value when searching for attributes. Fixes #5262 - Buttonset not working on inputs with Arrays in name Attribute. Thanks Zidane. --- ui/jquery.ui.button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/jquery.ui.button.js') diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 9adf0c193..fd01cf750 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -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; }); -- cgit v1.2.3