- On click of create button, am creating a combo box option dynamically.
- My need is, on click of delete button, i have to delete the dynamically created option.
Combo box code:
<select id="connectionname" class="connectionname" onchange="display();" style="width:150px; height:23px;">
<option>---Select---</option>
</select>
javascript to create/add options dynamically:
var NAME =dijit.byId("conname").getValue();
var newValue = document.getElementById("connectionname").appendChild(document.createElement('option'));
newValue.text = NAME;
document.getElementById("connectionname").value = newValue.text;