js select selectjs 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script> function change(){ var selVal = document.getElementById('select').options[document.getElementById('select').selectedIndex].value; document.getElementById('text').value = selVal; } </script></head><body> 分类ID:<input type="text" class="text" id="text" /> <select onchange="change();" id="select"><option value="美容护肤">美容护肤</option><option value="电击疗法">电击疗法</option><option value="按摩去皱">按摩去皱</option></select></body></html> 有关ETC行单元格合并的问题 为什么我的JQ代码只能使用一次?? js弹出页面报错 求js实现淘宝拍卖时那个时间倒计时的功能! 关于showModalDialog的问题 谈谈你对JavaScript 函数库的理解. 帮看看DIV弹出窗口的问题 简单之简单问题! 图片自动缩放问题. 如何制作滚动新闻 如何用javascript判断用的是什么浏览器! 懂jplayer的进!jplayer 点击了停止 就不能播放了
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script>
function change(){
var selVal = document.getElementById('select').options[document.getElementById('select').selectedIndex].value;
document.getElementById('text').value = selVal;
}
</script>
</head>
<body> 分类ID:<input type="text" class="text" id="text" /> <select onchange="change();" id="select"><option value="美容护肤">美容护肤</option><option value="电击疗法">电击疗法</option><option value="按摩去皱">按摩去皱</option></select>
</body>
</html>