Flip switches, radio buttons, and checkboxes

Whenever we need the user to choose between a restricted set of answers or options, it's usually a good idea not to make them write into a text field: people are funny beings and often "mistakenly" enter some completely unrelated (though sometimes hilarious) text into a field we might value as important.

For this reason, we might force the user to answer either "Yes" or "No" to a yes/no question, or choose one (or more) option(s) out of a number of possibilities.

Flip toggle switches

Binary flip toggle switches are UI elements used for any binary (yes/no, on/off, left/right, and so on) type of data input.

Actually, flip toggles are a particular type of select menu: the first option is styled as the "off" ...

Get jQuery Mobile First Look now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.