日期:2014-05-16 浏览次数:20662 次
<script type="text/javascript" src="http://www.coding123.net/js/jquery.js"></script>
<select onchange="loadFile(this.value)">
<option value="">选择文件...</option>
<option value="1.html">1.html</option>
<option value="2.txt">2.txt</option>
</select>
<textarea id="ta" rows="5" cols="50"></textarea>
<script type="text/javascript">
function loadFile(fn) {
if (fn != '') $.get('xxxxx.jsp?fn=' + fn, function (data) { $('#ta').val(data); });
}
</script>