178
rated 0 times
[
185]
[
7]
/ answers: 1 / hits: 64797
/ 12 Years ago, sat, june 16, 2012, 12:00:00
How is it possible to make knockout data-bind work on dynamically generated elements? For example, I insert a simple html select menu inside a div and want to populate options using the knockout options binding. This is what my code looks like:
$('#menu').html('<select name=list data-bind=options: listItems></select>');
but this method doesn't work. Any ideas?
More From » jquery