Created
July 31, 2011 03:05
-
-
Save nathanpalmer/1116331 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form data-bind="submit: addItem"> | |
New item: | |
<input data-bind='value: itemToAdd, valueUpdate: "afterkeydown"' /> | |
<button type="submit" data-bind="enable: itemToAdd.length > 0">Add</button> | |
<p>Your items:</p> | |
<select multiple="multiple" width="50" data-bind="options: items"> </select> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment