大家来帮我看看这个jquery的问题啊
tr>
<td>
<div class="line">
<div class="div_chn"> <span id="GridView1_ctl02_chinese"> </span> <input name="GridView1$ctl02$Hidden1" type="hidden" id="GridView1_ctl02_Hidden1" /> </div>
<div class="div_kuohao"> <span id="GridView1_ctl02_Label2">) </span> </div>
</div>
<div>
<span id="GridView1_ctl02_answer1" class="option" onclick="choiceAnswer(this)" style="display:inline-block;width:120px;"> 发烧,体温 </span>
<span id="GridView1_ctl02_B" class="option" style="display:inline-block;width:10px;">B. </span>
<span id="GridView1_ctl02_answer2" class="option" onclick="choiceAnswer(this)" style="display:inline-block;width:120px;"> 迟到 </span>
</div>
</td>
</tr>
function choiceAnswer(obj)
{
$yourChoice=$(obj).text();
$(".div_chn",$(obj).parent().parent()).text($yourChoice);
$(":hidden",$(obj).parent().parent()).val($yourChoice);
}
想要点击answer1或answer2时,将其值赋到label和hidden上,但是这样hidden就赋不了值,如果把$(":hidden",$(obj).parent().parent()).val($yourChoice); 放在前面,label就赋不了值了,请问该怎么给两个都赋值??