input type=radio

  • function
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

  1. KEY {key}

    A named value in the current scope. It should reference a a can.Map property or a can.compute.

  2. VALUE {String}

    Used to set the value of KEY when the radio input is checked.

Use