Hello is search to change one preview image by select I wrote this but there is a problem ... When I change the selection the image remains the same.
<script type="text/javascript">
function numeroImage() {
var pays = document.getElementById('idSelect').value;
document.getElementById('image').value=pays;
document.getElementById('imagePreview').src="flags/Flag_"+pays+".png";
}
</script>
</head>
<body>
<select id="idSelect" onchange="numeroImage()">
<option value="france">France</option>
<option value="belgique">Belgique</option>
<option value="suisse">Suisse</option>
<option value="allemagne">Allemagne</option>
</select>
<br/>
<br/>
<div id="preview">
<img height="75" weidth="100" src="flags/Flag_france.png" id="imagePreview">
</div>
</body>