Hello Everyone. Can someone please show me how I would make the following script output to a table vs. a textbox? Output would be a label and a value. Thanks in advance.
<SCRIPT>
function getSelectedValues (select) {
var r = new Array();
for (var i = 0; i < select.options.length; i++)
if (select.options.selected)
r[r.length] = select.options.value;
return r;
}
</SCRIPT>
//////////////////////////////////////////
<INPUT TYPE="text" NAME="output" SIZE="50">
<input type="button" value="Add your selections" ONCLICK="this.form.output.value = getSelectedValues
(this.form.select2);">
<SCRIPT>
function getSelectedValues (select) {
var r = new Array();
for (var i = 0; i < select.options.length; i++)
if (select.options.selected)
r[r.length] = select.options.value;
return r;
}
</SCRIPT>
//////////////////////////////////////////
<INPUT TYPE="text" NAME="output" SIZE="50">
<input type="button" value="Add your selections" ONCLICK="this.form.output.value = getSelectedValues
(this.form.select2);">