Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
JavaScript
var myDiv = document.getElementById("myDivResultSelect");

JavaScript
myDiv.appendChild(option);


XML
<pre lang="Javascript">var myDiv = document.getElementById("myDivResultSelect");</pre>
<pre lang="Javascript">myDiv.appendChild(option);</pre>




How could i use appenchild to same id?
Posted
Comments
Thanks7872 11-Dec-14 4:13am    
Nothing is clear.
Sinisa Hajnal 11-Dec-14 6:23am    
What do you mean "same id"?
jaket-cp 12-Dec-14 4:44am    
do you mean you have a select with id of myDivResultSelect and you want to append many option to the select?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900