How to set two checkbox where only one checkbox can be set at a time

how to set two checkbox wherein only one checkbox can be checked. let say if checkbox 1 has check and i check checkbox 2, the check in checkbox 1 will dissapear . and vice versa if i check the checkbox 1 the check in checkbox 2 will dissappear. how to do it.


Hi there, @rggaas… can you consider using radio buttons instead? What you described is the expected behavior of radio buttons, so not only would it be easier to implement, but it would likely be easier for your users to understand. Is there a specific reason you need to use checkboxes that are acting like radio buttons?


thanks it works and this is what im looking for.

1 Like