I have this mostly sorted, but I'm now trying to figure out how to add an 'onclick()' event to a dynamically created element:
var y=document.createElement('option');
y.value=tmp1;
y.text=tmp;
y.onclick = moveinid();
I've tried numerous variations on the line in bold, using setAttribute, attachEvent, etc etc and still haven't hit on it. How does one attach an onclick event in this circumstance?