Hi,
ich habe es inzwischen so gelöst:
JS:
Code:
function JS_Material(value)
{document.getElementById("ID_Material").value=value;}
HTML:
Code:
<input type="text" name="RN_Material" size="40" maxlength="255"
class="normdata" id="ID_Material" />
<select name="VG_Material" onclick="JS_Material(this.value)">
<option value=""></option>
<option value="0.12">0.12</option>
<option value="0.122">0.122</option>
<option value="0.125">0.125</option>
<option value="0.3">0.3</option>
<option value="0.25">0.25</option>
<option value="0.22">0.22</option>
<option value="0.2">0.2</option>
</select>
Durch onClick wird zwar das Eingabefeld schon gelöscht wenn man die Auswahl erst beginnt, aber das Verhalten finde ich tolerabel. onChange scheint aber tatsächlich die bessere Wahl zu sein, ich ändere das demnächst nochmal.
Danke für die Antwort
Molaf
Lesezeichen