BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<div id="group1" className='e-btn-group' role='group'>
<input type="radio" id="cluster" name="align" value="cluster" />
<label className="e-btn" htmlFor="cluster">Cluster</label>
<input type="radio" id="spain" name="align" value="spain" />
<label className="e-btn" htmlFor="spain">Spain</label>
<input type="radio" id="portugal" name="align" value="portugal" />
<label className="e-btn" htmlFor="portugal">Portugal</label>
</div> |
<div id="group2" className='e-btn-group' role='group'>
<input type="checkbox" id="budget" name="fontstyle" value="budget" checked />
<label className="e-btn" htmlFor="budget">
Budget
</label>
<input type="checkbox" id="APR" name="fontstyle" value="APR" />
<label className="e-btn" htmlFor="APR">
APR Projection
</label>
<input type="checkbox" id="SEP" name="fontstyle" value="SEP" />
<label className="e-btn" htmlFor="SEP">
SEP Projection
</label>
</div> |
Hi Oscar,Thank you for contacting Syncfusion supportWe have checked your reported query, and we would like to let you know that you have made a normal ButtonGroup type. So, when you select a second group option, the first selectionwill disappear. So, please use a single selection or multiple selection.Single selection:ButtonGroup supports radio type selection in which only one button can be selected. This can be achieved by adding input element along with id attribute with its corresponding label along with htmlFor attribute inside the target element. Please find the below code snippet:
<div id="group1" className='e-btn-group' role='group'><input type="radio" id="cluster" name="align" value="cluster" /><label className="e-btn" htmlFor="cluster">Cluster</label><input type="radio" id="spain" name="align" value="spain" /><label className="e-btn" htmlFor="spain">Spain</label><input type="radio" id="portugal" name="align" value="portugal" /><label className="e-btn" htmlFor="portugal">Portugal</label></div>Multiple selection:ButtonGroup supports checkbox type selection in which multiple button can be selected. This can be achieved by adding input element along with id attribute with its corresponding label along with htmlFor attribute inside the target element.
<div id="group2" className='e-btn-group' role='group'><input type="checkbox" id="budget" name="fontstyle" value="budget" checked /><label className="e-btn" htmlFor="budget">Budget</label><input type="checkbox" id="APR" name="fontstyle" value="APR" /><label className="e-btn" htmlFor="APR">APR Projection</label><input type="checkbox" id="SEP" name="fontstyle" value="SEP" /><label className="e-btn" htmlFor="SEP">SEP Projection</label></div>For your convenience we have prepared a sample. Please find the below link:Please find the below documentation link:Could you please check the above sample and get back to us if you need further assistance on this?Regards,Saranya D