how to append select option in jquery

JavaScript
//add option to select with jQuery
$('#selectID').append($('<option>', {
    value: 1,
    text: 'Option Text'
}));$('#ddlGroup').append(new Option('Select group', '0'));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: