by oabkj » Tue Mar 13, 2007 7:55 am
I had disabled that line as well, so I tried to enable it, but it made no difference.
I managed to make a fix, that works for my purpose.
I put in this function:
function selectItem(toBox, userResult)
{
var obj = document.getElementById(toBox);
var result = "";
for(var no=0;no<obj.options.length;no++)
{
result += obj.options[no].text;
if (no != obj.options.length-1) result += ",";
}
document.getElementById(userResult).value = result;
}
And call it in the form, with a onclick and ondblclick to input data into a new input element called userResult (plus index number of toBox), like so.
onclick="selectItem('toBox1', 'userResult1');â€