function reload_Selector_List(){
    let p=0;
    let strTemp;
    
    $('#task_owner').html('');
    
    for( p=0 ; p<membersList.length ; p++){    
        strTemp=(membersList[p].userId=== taskOwnerTempNew.userId) ? " selected " : "";
        $("#task_owner").append("<option data-id=\""+membersList[p].userId+"\" "+ strTemp + ">"+ membersList[p].ownerName + "</option>");           
    }
}
//Function that reload the memberList Users to the Selector

Function that reload the memberList Users to the Selector
Function that reload the memberList Users to the Selector
function reload_Selector_List(){
    let p=0;
    let strTemp;
    $('#task_owner').html('');
    for( p=0 ; p<membersList.length ; p++){    
        strTemp=(membersList[p].userId=== taskOwnerTempNew.userId) ? " selected " : "";
        $("#task_owner").append("<option data-id=\""+membersList[p].userId+"\" "+ strTemp + ">"+ membersList[p].ownerName + "</option>");           
    }
}
function reload_Selector_List ( ) { let p = 0 ; let strTemp ; $ ( '#task_owner' ) . html ( '' ) ; for ( p = 0 ; p < membersList . length ; p ++ ) { strTemp = ( membersList [ p ] . userId === taskOwnerTempNew . userId ) ? " selected " : "" ; $ ( "#task_owner" ) . append ( "<option data-id=\"" + membersList [ p ] . userId + "\" " + strTemp + ">" + membersList [ p ] . ownerName + "</option>" ) ; } }
Function that reload the memberList Users to the Selector
Function that reload the memberList Users to the Selector