J
Jean Passe
Hi,
The following does not work (I get nothing in the input box) :
<html>
<head>
<script type="text/javascript" language=javascript">
function afficher()
{
var idselection=window.document.truc.ma_combo;
var indexselection=idselection.selectedIndex;
var selectionenclair =idselection.options[indexselection].value;
window.document.truc.sel.value=selectionenclair;
}
</script>
</head>
<body>
<form name="truc">
<select name="ma_combo" size=1>
<option value="one" selected>one
<option value="two">two
<option value="three">three
</select>
<br>
<input type="text" name="sel" value="" size=10>
<br>
<input type="button" value="Afficher" onClick="afficher(" ")">
</form>
</body>
</html>
Why ????
Thanks.
The following does not work (I get nothing in the input box) :
<html>
<head>
<script type="text/javascript" language=javascript">
function afficher()
{
var idselection=window.document.truc.ma_combo;
var indexselection=idselection.selectedIndex;
var selectionenclair =idselection.options[indexselection].value;
window.document.truc.sel.value=selectionenclair;
}
</script>
</head>
<body>
<form name="truc">
<select name="ma_combo" size=1>
<option value="one" selected>one
<option value="two">two
<option value="three">three
</select>
<br>
<input type="text" name="sel" value="" size=10>
<br>
<input type="button" value="Afficher" onClick="afficher(" ")">
</form>
</body>
</html>
Why ????
Thanks.