Created
December 9, 2010 17:58
-
-
Save rauhryan/735063 to your computer and use it in GitHub Desktop.
output of select box
This file contains hidden or 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
<select> | |
<option> Select ... </option> | |
<option value='__ko.bindingHandlers.options.optionValueDomData__'>Hi</option> | |
</select> |
This file contains hidden or 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
<script type='text/javascript'> | |
var viewModel = function() { | |
this.options = [{ id: 1, value : 'Hi' }] | |
} | |
jQuery(function($) { | |
ko.applyBindings(viewModel); | |
}); | |
</script> | |
<select data-bind="options: options, optionsCaption: ' Select ...', optionsText: 'value'" ></select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment