我想一次传递多个select值.怎么也不会了.我是个菜鸟.麻烦大家帮我看一下.
原代码部分如下:
<script language="javascript">
function chuan(mobj)
{
document.body.all.ruzhu_date.value=mobj.childNodes[0].innerText;
}
</script>
<input name="ruzhu_date" type="text">
请选择您的入住日期
<a href="javascript:"><img src="images/date.jpg" width="20" height="19" border="0" title="点击打开日期选择器" onClick="MM_showHideLayers('date1','','show')"></a>
<!--下面是日期选择器的层-->
<div id="date1" style="position:absolute; z-index:1001; left: 294px; top: 11px; background-color: #DBD1B3; layer-background-color: #DBD1B3; border: 1px none #000000; visibility: hidden;">
<table width="240" height="130" border="1" cellspacing="0">
<tr><td>
<table width="100%" height="100%" border="0" align="right" cellspacing="1">
<tr>
<td colspan="3" align="left"> <font size=2pt class="STYLE8">请选择入住日期:</font></td>
</tr>
<tr align="right" id="tr_name">
<td width="80"><select name="c_year" onchange="changeDate()" style="font-size: 13pt; color: #FF9600; font-weight: bold;"></select>年</td>
<td width="80"><select name="c_month" onchange="changeDate()" style="font-size: 13pt; color: #FF9600; font-weight: bold;"></select>月</td>
<td width="80"><select name="c_day" style="font-size: 13pt; color: #FF9600; font-weight: bold;"></select>日</td>
</tr>
<tr>
<td> </td>
<td colspan="2" align="right" valign="bottom"><a href="javascript:"
<!--下面的括号里到底怎么写可以传递'几年''几月''几日'这样的值呢??-->
onClick="chuan(c_day,c_month,c_day)"><img src="images/selectdate.gif" border="0"></a>
</td>
</tr>
</table>
</td></tr>
</table>
</div>