27
rated 0 times
[
30]
[
3]
/ answers: 1 / hits: 27677
/ 7 Years ago, fri, february 24, 2017, 12:00:00
I am novice in HTML, javaScript or jQuery, I am basically an Oracle DBA and Developer. I need to know how to populate select list with jquery.
I have created a string from database query which is as mentioned below. Now I want this to be populated in a select list.
For example I have the string like:
<select id=my-select name=emplist>
<option value=7839>KING</option>
<option value=7782>CLARK</option>
<option value=7934>MILLER</option>
<option value=21>MAMUN</option></select>
and I like to populate the select list item
called '#SELECT_LIST' with the data above. How can I do that?
Now I want the selct item to be populated with the string.
Please respond, your answer will help me out.
Thanks.
More From » jquery