package mechaml

  1. Overview
  2. Docs

Operations on Radio Buttons

Similar to checkboxes, except that selecting one radio button in a group automatically unselects the others

val value : radio_button input -> string

Return the value (the label) of a radio button

val values : t -> radio_button input -> string list

Return the values of all the radio buttons with the same name as the given one

Return all the radio buttons with the same name as the given one

val selected : t -> checkbox input -> string option

Return the possibly selected radio button

val select : t -> radio_button input -> t

select form rb return form where rb is selected

val is_selected : t -> radio_button input -> bool

Check if the specified radio button is selected

val selected_default : t -> radio_button input -> string option

Values with checked attribute set

val reset : t -> checkbox input -> t

Reset to its default value, meaning that only the radio buttons with the checked attribute will be selected

OCaml

Innovation. Community. Security.