Skip to content
Advertisement

“placeholder” attribute using knockout – JSON

I would like to use placeholder attribute using data-bind but I have a error message([object object]) . Please let me know how can I use it.

html:

JavaScript

json:

JavaScript

Advertisement

Answer

The placeholder attribute should be a string (ko.observable), not an object.

JavaScript

Simple example: http://jsfiddle.net/xtdL7om1/

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement