頁:
[1]
透過JQ on()讓radio點選時顯示span區塊
本帖最後由 s1000702 於 2016-11-28 07:26 PM 編輯$(document).on("change","#form1",function(){
var value = $(this).val();
if(value == "q1"){$("#content").html($("#s1").html());}
if(value == "q2"){$("#content").html($("#s2").html());}
});<p>
<input name="Qtype" type="text" value="問卷類型" size="4" maxlength="4" readonly="readonly" class="CS"/>
<input type="radio" name="rdo0[]" value="q0" id="00" checked="checked"/>未設定
<input type="radio" name="rdo0[]" value="q1" id="01" />是非題
<input type="radio" name="rdo0[]" value="q2" id="02" />單選題
<input type="checkbox" name="ckx0[] "/>其他
</p>...<div class='locked'><em>瀏覽完整內容,請先 <a href='member.php?mod=register'>註冊</a> 或 <a href='javascript:;' onclick="lsSubmit()">登入會員</a></em></div><div></div>
頁:
[1]