{"size": 1512, "ext": "js", "max_stars_repo_path": "javascript/groupMemberFormLoop.js", "max_stars_repo_name": "AmineAffif/projet-festival", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "javascript/groupMemberFormLoop.js", "max_issues_repo_name": "AmineAffif/projet-festival", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "javascript/groupMemberFormLoop.js", "max_forks_repo_name": "AmineAffif/projet-festival", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 38.7692307692, "max_line_length": 118, "alphanum_fraction": 0.5846560847}


function generateMemberForm(selectObject) {

    document.getElementById("memberWrapper").innerHTML = "";

    var html = [
        '<div id="mb">',
        '<!-- Firstname Lastname -->',
        '<div class="form-row member">',
        '<div class="col lft_col">',
        '<!-- First name -->',
        '<input type="text" id="IDFirstName" class="form-control" placeholder="Prénom">',
        '</div>',
        '<div class="col rgt_col">',
        '<!-- Last name -->',
        '<input type="text" id="IDLastName" class="form-control" placeholder="Nom">',
        '<!-- instrument -->',
        '<textarea class="form-control rounded-0" id="instrument" rows="2" placeholder="Instruments..."></textarea>',
        '</div>',
        '</div>',
        '</div>'
    ].join("\n");

    var optionSelectedValue = selectObject.value;

    for (var i = 1; i <= optionSelectedValue; i++) {
        var identificationGlobal = "memberGlobal member" + i;
        var identificationFirstName = "firstnameMember" + i;
        var identificationLastName = "lastnameMember" + i;
        var identificationInstrument = "instrumentMember" + i;
        $("#memberWrapper").append(html);
        document.getElementById("mb").id = identificationGlobal;
        document.getElementById("IDFirstName").id = identificationFirstName;
        document.getElementById("IDLastName").id = identificationLastName;
        document.getElementById("instrument").id = identificationInstrument;
    }
}
