When we use the onchange event of Select, we often encounter such a problem, that is, when the same item is selected continuously, the onchange event is not triggered. The onchange event of select is like this. You must have Change to trigger this event ....
After mastering its characteristics, the corresponding solution is also very simple.
<select name=sel onchange="bao(this.options[this.options.selectedIndex].value)">
<option value="">Please select
<option value="1">Item 1
<option value="2">Item 2
<option value="3">Item 3
</select>
<script>
function bao(s)
{
txt.value+=s;
//After selection, let the first item be selected, so there is Change.
document.all.sel.options[0].selected=true;
}
</script>
<textarea id=txt></textarea>