I have a form that contains a Yes/No drop-down. If "yes" is chosen, I want to use a template to generate n number of new sibling containers of html. I don't want to clutter up the html, with empty forms if they're never going to select "yes".
I'm wondering how to do this.
Perhaps I can create the containing property as an observableArray(). Then, what?, a custom binding on the select-box that runs a function that checks the value of the select box and, if "yes", grabs the array of content and $.each() observableArray.push()?
Is there a non-custom binding way to do this?
Thanks.