0

Aren't check (tick) buttons more useful?

Why do they exist?

They seem quite unnecessary to me, can you please explain to me the purpose of radio buttons?

Rohit Rayudu
  • 3,765
  • 6
  • 21
  • 21
  • 1
    Also check out: http://ux.stackexchange.com/ – Brad Oct 30 '12 at 03:31
  • If there was a question that asked for your gender, it would be bad design to use check-boxes - what if someone checked both? Or how about "early" and "late" - you can't be both! – enhzflep Oct 30 '12 at 03:32

2 Answers2

2

They are used so that only one option can be chosen out of a group of options. Check buttons allow the user to choose multiple options.

Edit:

If the goal is to have check boxes for which only 0 or 1 of the boxes in a group is checked, then check out the jsFiddle from this answer. It presents a simple way to do this using jQuery.

Here's the Javascript code used:

$("input:checkbox").click(function() {
    if ($(this).attr("checked") === true) {
        var group = "input:checkbox[name='" + $(this).attr("name") + "']";
        $(group).attr("checked", false);
        $(this).attr("checked", true);
    } else {
        $(this).attr("checked", false);
    }
});
Community
  • 1
  • 1
Jeff Gortmaker
  • 4,607
  • 3
  • 22
  • 29
0

Checkboxes are for multiple selection while radio buttons only allow a single selection. It is really by design of HTML and before that standard user interfaces that checkboxes and radio buttons behave this way.

Radio buttons derive their name from the design of the station presets on a radio (think car dash radio). Back before radios were all digital, those radio buttons physically pushed in causing the single selection to push the existing selection out.

jimp
  • 16,999
  • 3
  • 27
  • 36