DomTemplate
DomTemplate copied to clipboard
Binding options within a select, with existing options already present
I would like to be able to supply some hard-coded options in the select element that come after an option with data-template attribute.
For example:
<label>
<span>Make a payment for</span>
<select id="product-select" name="product" required data-bind:value="product">
<option></option>
<option data-template data-bind:value="id" data-bind:text="nameWithPrice">Product name - £-.--</option>
<option value="shipping-only">Shipping only</option>
<option value="other">Other</option>
</select>
</label>