I want to create a group of buttons where a button from a group can be selected immediately.
Suppose we have three buttons, the user should be able to select only one button, so if the user selects "Apple", then they will not be able to select the Apple button again.
The main goal will be to stop the user selecting a button that is already selected.
<div class="btn-group btn-group-lg"> <button type="button" class="btn btn-primary">Apple</button> <button type="button" class="btn btn-primary">Samsung</button> <button type="button" class="btn btn-primary">Sony</button> </div>
How can i solve this?
source share