input type=radio

  • function

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.


  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.