I have a multiple checkboxes, but I want user to select one checkbox only. I try if-else statement but it is not useable. So, I want to know, how to be like that.
Thanks
Why don't you use Radio Buttons instead? They are meant exactly for that.
But if you insist on using check boxes, modify the event of on select of any check box such that when it is selected it disables the other check boxes.
1.4m articles
1.4m replys
5 comments
57.0k users