[AJAX] onchange sur SELECT
Bonjour à tous,
Je dois avoir une poutre dans l'oeil...
Je coince depuis 2 jours là-dessus.
Impossible de déclencher onchange sur mon select????
Voici mon script généré, en espérant....
Merci d'avance!!
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
<!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" xml:lang="fr">
<head>
<link href="garageaudet.css" rel="stylesheet" type="text/css" media="screen" />
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<! ========================================================================================================= >
<! =================================== F O N C T I O N S =================================================== >
<! ========================================================================================================= >
<SCRIPT language="JavaScript">
function Test()
{
alert('TEST !!!!!!!!!!!!!!!!!!');
}
</script>
</head>
<body>
<h2>Liste des annonces du garage</h2>
<! ========================================================================================================= >
<! =================================== M E N U =================================================== >
<! ========================================================================================================= >
<div class='menu'>
<ul>
<p>Menu</p>
<li><a href="index.php" title="Fenêtre d'accueil">Accueil</a></li>
<li><a href="#" title="Nos prestations">Services</a>
<ul>
<li><a href="Affichage_PRE.php" title="Prestations">Prestations</a></li>
<li><a href="Affichage_TAR.php" title="Tarifs">Tarifs</a></li>
</ul>
</li>
<li><a href="Affichage_ANN.php?Id_Mar=3&Id_Mdl=1" title="Liste des annonces">Occasions</a></li>
<li><a href="partenaires.php" title="Contactez nos partenaires">Partenaires</a></li>
<li><a href="#" title="Contacts">Contacts</a>
<ul>
<li><a href="plan.php" title="Plan">Plan d'accès</a></li>
<li><a href="Formulaire_Email.php" title="Email">Email</a></li>
<li><a href="adresse.php" title="Adresse">Adresse</a></li>
</ul>
</li>
</ul>
</div>
<form class=sel_veh>
<fieldset>
<legend><b>Sélectionner un type de véhicule</b></legend>
<label>Marques</label>
<select name='marque' id='marque' onchange='test()'>
<option value='-1'>Choisir une marque</option>
<option value='5'>Autres</option><option value='4'>Citroën</option><option value='1'>Peugeot</option><option value='2'>Renault</option><option value='3'>SEAT</option> </select><br>
<label>Modèles</label>
<div id='modelle' style='display:inline'>
<select name='modele' id='modele' onchange='go_modele()'>
<option value='-1'>Choisir un modèle</option>
</select>
</div><br>
</fieldset>
</form>
</body>
</html> |