I have following code that needs to be simplified.
MenusDeroulants(string, html_element) is a function I'm using on 11 pairs and that gives me the following:
MenusDeroulants("GetListeCatDdeurs", $("#cbx_Cat_Ddeur"));
MenusDeroulants("GetListeCommunautes", $("#cbx_Communaute"));
MenusDeroulants("GetListeOccupations", $("#cbx_Occupation"));
MenusDeroulants("GetListeProvinces", $("#cbx_Province"));
MenusDeroulants("GetListeScolarites", $("#cbx_Scolarite"));
MenusDeroulants("GetListeSexes", $("#cbx_Sexe"));
MenusDeroulants("GetListeSituations_Matrimoniales", $("#cbx_SituationMatrimoniale"));
MenusDeroulants("GetListeSource_De_Revenus", $("#cbx_SrceRevenu"));
MenusDeroulants("GetListeStatuts_Legaux", $("#cbx_StatutLegal"));
MenusDeroulants("GetListeTranche_Revenu", $("#cbx_TrancheRevenu"));
MenusDeroulants("GetListeVilles", $("#cbx_Ville"));
Is there a way to simplify it? My understanding of arrays and objects is so limited I could not find a way to create one to loop on.