This content has been marked as final. Show 3 replies
It sounds like you want a radio button instead of a checkbox. Checkboxes allow you multiple selections for a give form field, radio buttons require that you only select 1 from a set number of options.
but can i also make a checkbox exclusive.
if and only one is checked then action?
From an interface standpoint, its usually not a good idea to change the expected behaviour of HTML form elements. If users see a radio button, they usually assume that it will allow only 1 choice. If they are presented with a checkbox, they could very easily expect that they could select more than 1.