Forum Moderators: open
<body>
<select name="select"style="position:absolute;width:118px;clip:rect(0 120 22 100)">
<option>Waxbird</option>
<option>DrDOC</option>
</select>
<input type="text" style="position:absolute;width:100px;border-right:0">
</body>
</html>
Fixed it so that it'll automatically update:
<form name="form">
<select name="select" onChange="document.form.text.value=document.form.select.options[document.form.select.selectedIndex].value" style="position:absolute;width:118px;clip:rect(0 120 22 100)">
<option value="Waxbird">Waxbird</option>
<option value="DrDoc">DrDOC</option>
</select>
<input type="text" name="text" onChange="document.form.select.selectedIndex=-1" style="position:absolute;width:100px;border-right:0">
</form>
I've tried this with both Firebird and IE and can't find what's wrong.
Other than that, thank you for this little snippet. I've just been pondering if it was possible to this and wouldn't have known where to start.
ChrisJ
Edit:
I've just realised that if I put some junk in the first option ie."Select below or type above" with the value set as "" it's actually a nice way of emptying the text field as well explaining how it works.