为什么我不能这样用???        document.ff.ceng.value
为什么我不能这样用???        document.ff.ceng.value
<form action="chaC.jsp" name="ff">
			<table width="200" border="1" name="tt">
				<tbody>
					<tr>
						<td>
							按条件查询房屋
						</td>
					</tr>
					<tr>
						<td>
							楼层
							<select name="ceng" onChange="checkceng(this.value)">
								<option value="1">
									一层
								</option>
								<option value="2" <%if(ceng==2) out.print("selected");%>>
									二层
								</option>
								<option value="3" <%if(ceng==3) out.print("selected");%>>
									三层
								</option>
								<option value="4" <%if(ceng==4) out.print("selected");%>>
									四层
								</option>
							</select>
</td>
</tr>
</tbody>
</table>
</form>
------解决方案--------------------完全可以啊
<form action="chaC.jsp" name="ff" >  
<table width="200" border="1" name="tt" >  
<tbody >  
<tr >  
<td >  
按条件查询房屋  
</td >  
</tr >  
<tr >  
<td >  
楼层  
<select name="ceng" onChange="checkceng(document.ff.ceng.value)" >  
<option value="1" >  
一层  
</option >  
<option value="2"  <%if(ceng==2) out.print("selected");% > >  
二层  
</option >  
<option value="3"  <%if(ceng==3) out.print("selected");% > >  
三层  
</option >  
<option value="4"  <%if(ceng==4) out.print("selected");% > >  
四层  
</option >  
</select >  
</td >  
</tr >  
</tbody >  
</table >  
</form >
<script language="javaScript">
	function checkceng(thisValue){
		alert(thisValue);
	}
</script>