function reload_Selector_Groups_List(){
    let p=0;
    let strTemp;   
    $('#selectGroup1').html('');
    for( p=0 ; p<groupsList.length ; p++){     
        strTemp=(groupsList[p].groupID===globalUserID) ? " selected " : "";
        $("#selectGroup1").append("<option data-id=\""+groupsList[p].groupID+"\" "+ strTemp + ">"+ groupsList[p].groupName + "</option>");           
    } 
    groupId= $("#selectGroup1 option:selected").data("id");
}
//Function that reload the memberGroupsList Users to the Selector

Function that reload the memberGroupsList Users to the Selector
Function that reload the memberGroupsList Users to the Selector
function reload_Selector_Groups_List(){
    let p=0;
    let strTemp;   
    $('#selectGroup1').html('');
    for( p=0 ; p<groupsList.length ; p++){     
        strTemp=(groupsList[p].groupID===globalUserID) ? " selected " : "";
        $("#selectGroup1").append("<option data-id=\""+groupsList[p].groupID+"\" "+ strTemp + ">"+ groupsList[p].groupName + "</option>");           
    } 
    groupId= $("#selectGroup1 option:selected").data("id");
}
function reload_Selector_Groups_List ( ) { let p = 0 ; let strTemp ; $ ( '#selectGroup1' ) . html ( '' ) ; for ( p = 0 ; p < groupsList . length ; p ++ ) { strTemp = ( groupsList [ p ] . groupID === globalUserID ) ? " selected " : "" ; $ ( "#selectGroup1" ) . append ( "<option data-id=\"" + groupsList [ p ] . groupID + "\" " + strTemp + ">" + groupsList [ p ] . groupName + "</option>" ) ; } groupId = $ ( "#selectGroup1 option:selected" ) . data ( "id" ) ; }
Function that reload the memberGroupsList Users to the Selector
Function that reload the memberGroupsList Users to the Selector