input type=radio
can.view.bindings.can-value-radio
Cross bind a value to a radio input.
<input type='radio' can-value='KEY' value='VALUE'/>
If the radio element is checked, sets the observable specified by can-value to match the value of
value attribute.
Parameters
-
KEY
{key}A named value in the current scope. It should reference a a can.Map property or a can.compute.
-
VALUE
{String}Used to set the value of
KEYwhen the radio input is checked.
Use