getOption

returns the option of a radio, a segmented button or a tabbar

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" }
*/

Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.