Fork me on GitHub

Button

<p>
  <div id="myCheckgroup">
    <input type="button" value="2">
    <input class="active" type="reset" value="3">
    <input class="active" type="submit" value="4">
    <input type="button" value="5">
    <input type="button" value="6">
    <button>7</button>
  </div>
</p>
<p>
  <div id="myRadiogroup">
    <input type="button" value="2">
    <input type="reset" value="3">
    <input class="active" type="submit" value="4">
    <input type="button" value="5">
    <input type="button" value="6">
    <button>7</button>
  </div>
</p>
YUI().use(
  'aui-button',
  function(Y) {
    new Y.ButtonGroup(
      {
        boundingBox: '#myCheckgroup',
        type: 'checkbox'
      }
    ).render();

    new Y.ButtonGroup(
      {
        boundingBox: '#myRadiogroup',
        type: 'radio'
      }
    ).render();
  }
);