Appending the option element using jquery each function

JavaScript
Here , object contains the list of values

$.each(obj , function (key, value) {
                                $('#GroupName').append($('<option>',
                                    {
                                    value: value.id,
                                    text: value.Group_Name
                                }));

Source

Also in JavaScript: