select控件的OnChange事件
2007-04-09 14:51
381 查看
<html>
<head>
<title>onChange</title>
</head>
<body>
<form action="restaurantbuy2.aspx?" method="post" name=Restaurantbuyad_form>
<select name="EffectiveDateSel" onChange="DispayPrice();">
<option value="365" selected >1年(365天)</option>
<option value="730">2年(730天)</option>
</select>
<span id="calssified_price"></span>
</form>
<script type="text/javascript">...
function DispayPrice()
...{
var nSel = document.getElementById("EffectiveDateSel").value;
document.getElementById("calssified_price").innerHTML = nSel;
}
DispayPrice();
</script>
</body>
</html>
相关文章推荐
- js代码赋值触发select控件的onchange事件
- Javascript实例:Select的OnChange()事件
- 为什么Jquery对input file控件的onchange事件只生效一次
- JQuery 绑定select标签的onchange事件,弹出选择的值,并实现跳转、传参
- select 经过 easyui combobox 渲染后的onchange事件
- select的onchange事件
- 关于WdatePicker控件的onchange事件如何使用————2017/8/5
- JQuery 绑定select标签的onchange事件
- 往class="easyui-combobox"的select中添加onchange事件
- Select下拉框onchange事件获取option的value值
- Select的OnChange()事件
- Javascript实例:Select的OnChange()事件
- select重复选择同一项,还可以触发onchange事件
- JQuery 绑定select标签的onchange事件,弹出选择的值,并实现跳转、传参
- Select的onchange事件
- JQuery动态修改select标签的内容,并绑定onchange事件,弹出选择的值
- select的onchange事件
- JQuery 绑定select标签的onchange事件,弹出选择的值,并实现跳转、传参
- jquery input 下拉框(模拟select控件)焦点事件
- Select下拉框onchange事件获取option的value值