我的代码:如何显示/隐藏的div(jQuery的)
<select id="select">
<option id="1" value="thai language">option one</option>
<option id="2" value="eng language">option two</option>
<option id="3" value="other language">option three</option>
</select>
<div id="form1">content here</div>
<div id="form2">content here</div>
<div id="form3">content here</div>
我想是显示DIV#form1的时候选择选项1,隐藏窗口2 + form3,或 选择选项2显示div#form2并隐藏form1 + form2
沿着我在想什么线。 $(this).attr('id')不会引用select本身的id?我想我必须得到选择索引,抓住这个选项,然后得到ID。 – Sampson 2009-06-25 11:00:11