Problem with the "onchange" on my form

Hello,
I have the following piece of script

{
					type: "select",
					inputWidth: 200,
					labelWidth: 200,
					label: "Choisir le mode transport",
					name: "modetransport",
					validate: "NotEmpty",
					connector: "modetransportoptions2.php",
				},
				{
					type: "select",
					inputWidth: 200,
					labelWidth: 200,
					label: "Ville de départ",
					name: "depart",
					validate: "NotEmpty",
					connector: "villeptions2.php",
				},
				{
					type: "select",
					inputWidth: 200,
					labelWidth: 200,
					label: "Ville de destination",
					name: "arrivee",
					validate: "NotEmpty",
					connector: "villeptions2.php",
				}
  • and I want that: the second “select” be sort according to the value choosing in the first " select" ,
  • the third “select” be sort according to the value choosing in the second "select .

I tried everything, but without success.

I just tried the “onchange” like this, but I do not know how to use it to make these sorts.

FormBtnItineraire2.attachEvent("onChange", function(name,value)
							{
								alert(value);
							}
							);

Thank you for your contribution.

Hello
I can suggest you using dhtxmlCombo in a form to achieve it:
dhtmlx.com/docs/products/dht … roups.html