3个下拉框和1个文本框的值在onchange后直接显示在家庭地址内。不知道哪儿不对.剩余分数都给了,恳请指导
2个需调用的js文件下载地址:www.wepage.cn/aaa/districtselector.js
www.wepage.cn/aaa/tbra-aio(1).js
演示地址:www.wepage.cn/aaa/444.asp
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<title>::::::</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function doitzz(ofrmzz){
ofrmzz.t180.value=ofrmzz.fmdopr.value+ofrmzz.fmdoc.value+ofrmzz.fmdob.value+ofrmzz.text4.value;
}
</script>
</head>
<body >
<table align="center">
<form>
<tr align="center" height="39">
<td> </td>
<td>家庭住址</td>
<td colspan="4" align="left"><SCRIPT type=text/javascript src="tbra-aio(1).js"></SCRIPT>
<SELECT name="fmdopr" id="fmdopr" title="省" onChange="doChange(this);javascript:doitzz(this.form);"></SELECT>
<SELECT name="fmdoc" id="fmdoc" title="市" onChange="javascript:doitzz(this.form);"></SELECT>
<SELECT name="fmdoa" id="fmdoa" title="区" onChange="javascript:doitzz(this.form);"></SELECT>
<INPUT name="fmdod" id="divisionCode" class="pc:divisionCode" type="hidden">
<input type="text" name="text4" size="30" onChange="javascript:doitzz(this.form);">
<SCRIPT type=text/javascript src="districtselector.js"></SCRIPT>
<SCRIPT type=text/javascript>
function getAddressStatuTd(oTr)
{
var oTd;
var obj = oTr.getElementsByTagName("td");
var oTd;
for(var i=0;i<obj.length;i++)
{
if(obj[i].className == 'thead-tbl-status')//找出sthead-tbl-status的那个标记
{
oTd= obj[i];
break;
}
}
return oTd;
}
(function() {
var Y = YAHOO.util;
var provSel = Y.Dom.get("fmdopr");
var citySel = Y.Dom.get("fmdoc");
var distSel = Y.Dom.get("fmdoa");
var codeInput = Y.Dom.get('divisionCode');
//取得全国省份信息
var cv = TB.form.DistrictSelector.attach(provSel, citySel, distSel);