You could use a javascript solution:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style>
</style>
<script language = "javascript">
<!--
var firstBit1 = "<select name='menu' id = 'menu' size='";
var firstBit2 = "' multiple='multiple'>";
var orig_conts = "<option selectec value='1'>maple<option value='2'>hickory<option value='3'>birch</option>";
var lastBit = "</select>";
var size = 3;
var x = 3;
function initRefresh() {
//replace size with x to make the dropdown list increase in vertical size with each selection
document.getElementById('d
}
function addItem() {
x++;
orig_conts = "<option value = '" + x + "'>" + document.form.add.value + "</option>" + orig_conts;
initRefresh();
document.form.add.value = "";
document.form.menu.selecte
}
//-->
</script>
</head>
<body onload = "initRefresh()">
<form name = "form" id = "form">
<div name = "div" id = "div"></div>
<input type = "text" name = "add" id = "add"><br>
<input type = "button" value = "Click" onclick = "addItem()">
</form>
</body>
</html>
Hope that's helpful,
G
Main Topics
Browse All Topics





by: seanpowellPosted on 2004-04-29 at 15:32:55ID: 10954384
Have a read through this: pela/forms /combo.htm l
http://www.cs.tut.fi/~jkor
Let us know if you need more info...
Thanks,
Sean