Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Appending the option element using jquery each function

Here , object contains the list of values

$.each(obj , function (key, value) {
                                $('#GroupName').append($('<option>',
                                    {
                                    value: value.id,
                                    text: value.Group_Name
                                }));
 
PREVIOUS NEXT
Tagged: #Appending #option #element #jquery #function
ADD COMMENT
Topic
Name
6+7 =