JavaScript RadioButton

Set the groupName property of the jqxRadioButton. Author: http://jqwidgets.com

by jqwidgets

HTML

<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id='jqxRadioButton'>Group Radio Button</div>
<div id='jqxRadioButton2'>Group Radio Button 2</div>
<br/>
<br/>
<div id='jqxRadioButton3'>Other Group Radio Button</div>
<div id='jqxRadioButton4'>Other Group Radio Button 2</div>

JavaScript

$("#jqxRadioButton").jqxRadioButton({
     width: 120,
     height: 25,
     theme: 'energyblue',
     groupName: "Group"
 });
 $("#jqxRadioButton2").jqxRadioButton({
     width: 120,
     height: 25,
     theme: 'energyblue',
     groupName: "Group"
 });
 $("#jqxRadioButton3").jqxRadioButton({
     width: 120,
     height: 25,
     theme: 'energyblue',
     groupName: "Group2"
 });
 $("#jqxRadioButton4").jqxRadioButton({
     width: 120,
     height: 25,
     theme: 'energyblue',
     groupName: "Group2"
 })