ButtonSet improvements

ButtonSet improvements

This is half feature request and half stuff I've hacked into my code which I'd love to be used by someone with a more intimate knowledge of jqueryui:
  • ButtonSet is still selectable as text,  this is not (IMHO) a intuitive ability for buttons based on the way they normally function in windows/linux/mac. As suggested here this can be acheived via:
  1. -moz-user-select: none;
       -khtml-user-select: none;
       user-select: none;

  • ButtonSet does not conform with the rest of JQueryUi's buttons in that it has no .val() method. My suggestion would be to implement the following code in the .val method (not the most efficient, data could be added to the labels to reduce DOM parsing):
  1. var values = new Array(); $(element+" > .ui-state-active").each(function(){ $( "#"+$(this).attr("for") ).each(function(){ values[values.length] = $(this).attr("value"); }); });     return values;
Considering these are my biggest issues with JQueryUI atm you guys are clearly doing an awesome job, keep it up! :)