I have a row that I am cloning sometimes.
<script id="SubRow10" type="text/template">
<select id="SubSelect10" class="form-control" name="SubcategorySelect" required>
<option value="m,2">Op1</option>
<option value="m,3">Op2</option>
<option value="m,5">Op3</option>
<option value="m,6">Op4</option>
</select>
</script>
I have a form to add an option to "#Subselect10"
But when I do this:
$('#SubSelect10').append('<option value="m,8">Op5</option>');
It does not work, but when I do this:
$('#SubRow10').append('<option value="m,8">Op5</option>');
It works, but it won't add it to the Select menu.
Can someone lead me in the right direction?
Here is a JSFiddle