Bonjour ul38,
<html>
<script language="JavaScript">
<!--
function change()
{
document.frm.ville.disabled = false;
document.frm.ville.length=0;
var france = ["Paris", "Nice", "Marseille", "Lyon"];
var usa = ["New York", "Chicago", "Houston", "Dallas"];
if(document.frm.pays.value == "france"){
for(i = 0; i < france.length ; i++){
addOption(france[i]);
}
}
if(document.frm.pays.value == "usa"){
for(i=0; i < usa.length ;i++){
addOption(usa[i]);
}
}
}
function addOption(title) {
nouvel_element = new Option(title,title,false,true);
document.frm.ville.options[document.frm.ville.length] = nouvel_element;
}
//-->
</script>
<center>
<form name="frm">
<select name="pays" id="pays" onchange="change();">
<option value="usa">USA</option>
<option value="france">FRANCE</option>
</select>
<select name="ville" id="ville" disabled="disabled"></select>
</form>
</center>
</html>
Dis moi si tu as des questions ...