我的DOM是这样的:现在jQuery的,获得下拉列表的ID,当按钮被点击
<td>
<select id=s1 class=c1>...</select>
<select id=s2 class=c1>...</select>
<select id=s3 class=c1>...</select>
<input type=button id=btn value=click/>
</td>
在页面加载时,我做了$(".c1").hide();
,然后根据其他逻辑,使人们看到其中之一。
现在当单击按钮时,我需要当前可见的下拉列表的ID。
我该怎么做?
851个问题..... 51%接受....加油! – redsquare 2010-09-22 21:21:02