<div class="htmlarea"> <textarea id="runcode14312"> <form method="post" name="f1" action=""> <select name="s1"> <option value="aaa">aaa</option> <option value="bbb">bbb</option> <option value="ccc">ccc</option> </select> </form> <script type="text/javascript"> <!-- var ss="eee"; f1.s1.value=ss; alert(f1.s1.selectedIndex>-1) // --> </script> </textarea><br><input onclick="runEx('runcode14312')" type="button" value="运行代码"> <input onclick="doCopy('runcode14312')" type="button" value="复制代码"> <input onclick="doSave(runcode14312)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>