<div class="htmlarea"><textarea id="runcode91427"> <select name="sel" onchange="bao(this.options[this.options.selectedIndex].value)"> <option value="">请选择 </option> <option value="1">Item 1 </option> <option value="2">Item 2 </option> <option value="3">Item 3 </option></select> <script> function bao(s) { txt.value+=s; //选择后,让第一项被选中,这样,就有Change啦. document.all.sel.options[0].selected=true; } </script> <textarea id="txt"> </textarea><br><input onclick="runEx('runcode91427')" type="button" value="运行代码"> <input onclick="doCopy('runcode91427')" type="button" value="复制代码"> <input onclick="doSave(runcode91427)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</textarea></div>