DHTMLX Docs & Samples Explorer

getCheckedValue(name)

Returns value of the checked radio button (for 'radio' items only).

Parameters:

  • name - the id of item (the item's parameter 'name')
formData = [
		{type: "radio", name: "gender", value: "male", label: "Male"},
		{type: "radio", name: "gender", value: "female", label: "Female"},
                ...
];
myForm = new dhtmlXForm("myForm", formData);
var checkedButton = dhxForm.getCheckedValue("gender");

See also: