<html>
<head>
<title>DHtml举例12 </title>
<style> <!--
body {font-family:"宋体";color="blue";font-size="9pt"}
-->
</style>
</head>
<body>
<tr>
<td>
付款方式:
<select name="payType" οnchange="javascript:selectPay();">
<option value="货到付款" >
货到付款
</option>
<option value="网银支付">
网银支付
</option>
<option value="交银支付">
交银支付
</option>
</select>
<span id="ss" style="display:inline;"> 货到付款 </span>
</td>
</tr>
</body>
</html>
<script>
function selectPay(){
var lb=document.getElementById("payType").value;
if(lb=="货到付款"){
document.getElementById("ss").innerText=' 货到付款' ;
}
if(lb=="网银支付"){
document.getElementById("ss").innerText=' 网银付款';
}
if(lb=="交银支付"){
document.getElementById("ss").innerText='交通银行专用支付通道';
}
}
</script>
js关联框
最新推荐文章于 2024-06-02 21:34:19 发布