Hey guys I have here an script:
function getFiles(){
    var query = "";
    if (ifShowSharedFiles()) {
        $(".button-opt").hide();
        query = (FOLDER_ID == "root") ? "trashed=false and sharedWithMe" : "trashed=false and '" + FOLDER_ID + "' in parents";
        if (FOLDER_ID != "root" && FOLDER_PERMISSION == "true") {
            $(".button-opt").show();
        }
    }else{
        $(".button-opt").show();
        query = "trashed=false and '" + FOLDER_ID + "' in parents";
    }
    var request = gapi.client.drive.files.list({
        'maxResults': NO_OF_FILES,
        'q': query
    });
    request.execute(function (resp) {
       if (!resp.error) {
            showUserInfo();
            DRIVE_FILES = resp.items;
            buildFiles();
                for(var i = 0; i < resp.items.length; i++ ){
                         console.log(resp.items[i].title)
                }
       }else{
            showErrorMessage("Error: " + resp.error.message);
       }
    });
}
The console.log gives me the names of the folders I need.
How can I put the console.log in option select.
If I run this getfiles The outcome in console.log is:
Name
Age
Place
With this data I need a select box with 3 option value.