cs_jeca
Messages postés341Date d'inscriptionmercredi 17 juillet 2002StatutMembreDernière intervention14 juillet 201114 4 janv. 2003 à 12:14
Bonjour,
Tu peux essayer un truc dans ce genre :
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript">
function test(obj)
{
var cp = obj.cp.value;
var ligne = "";
if (cp == 29470)
{
var cible = document.getElementById("nomville");
ligne += "<select name="ville">";
ligne += "<option value="Plougastel">Plougastel</option>";
ligne += "<option value="Loperhet">Loperhet</option>";
ligne += "</select>";
cible.innerHTML = ligne;
}
}
</script>
</head>