how to append the value of innerHTML in javascript without changing the first inserted values?
I have generated a combobox in my page and creating new combobox using ajax.
but when I try to add new combobox the selected value of previous combobox is get reset.
How can I avoid it.
I am using upper code to append the first innerHTML value in the next created innerHTML.
I have generated a combobox in my page and creating new combobox using ajax.
but when I try to add new combobox the selected value of previous combobox is get reset.
How can I avoid it.
Code:
batch_field=document.getElementById('stock_add').innerHTML;
batch_field = batch_field.concat(xmlhttp3.responseText);
document.getElementById('stock_add').innerHTML = batch_field;
Comment