Html ButtonGroup

Invoke the setSelection method of the jqxButtonGroup. Author: http://jqwidgets.com

by musicreader

HTML

<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<div id='jqxButtonGroup'>
    <button style="padding:4px 16px;" id="Left">Left</button>
    <button style="padding:4px 16px;" id="Center">Center</button>
    <button style="padding:4px 16px;" id="Right">Right</button>
</div>

JavaScript

$('#jqxButtonGroup').jqxButtonGroup({
    theme: 'energyblue',
    mode:'radio'
});
// setSelection on the ButtonGroup
$('#jqxButtonGroup').jqxButtonGroup('setSelection', -1);