Right, should of included that!
Right now I am using two forms.
Left Side:
Code:
<form name="frm">
Select Courses
<select name="inputbox">
<option value="COURSE1">COURSE1</option>
<option value="COURSE2">COURSE2</option>
<option value="COURSE3">COURSE3</option>
</select>
<input type="button" onClick="add_item();" value="Send to Backpack"/>
</form>
Right Side:
Code:
<form name="backpack">
<textarea name="outputbox" value="" disabled="disabled" readonly="readonly" style="background-color: #E6E8E8; border:0; resize: none"></textarea>
<input name="button" type="button" onClick="remove_item();" value="Remove"/>
</form>
And here if the javascript in the HEAD:
Code:
<script language="JavaScript">
var backpack_array = new Array();
function add_item(){
var item = document.frm.inputbox.value;
backpack_array.push(item);
document.backpack.outputbox.value = backpack_array ;
}
function remove_item(){
backpack_array.pop();
document.backpack.outputbox.value = backpack_array ;
}
</script>
So this is actually making it dynamically update the textarea on the rightside, but it is comma seperated. I was hoping to have it be in bullets.
Thanks,