select
Cross bind a value to a <select>
element.
value:bind="KEY"
Cross binds the selected option value with an observable value.
Parameters
- KEY
{key}
:A named value in the current scope.
KEY
’s value is cross bound with the selected<option>
in the<select>
.KEY
should specify either a can-map/can-define/map/map property or a compute.
Use
The following cross bind's a <select>
to a person
map's attending
property: