getOption

returns the option of a the set of radio buttons

object getOption(string|number id);
idstring|numberthe ID of an option
objectthe object with the ID and the value of an option

Example

var option = $$("radio").getOption("2");
/*
  { "id":"2", "value":"Red" }
*/
option.value = "Magenta";
$$("radio").refresh();

Back to top