<thead> <tr id="q1"> <th>Question / Brands</th> <th>Apple</th> <th width="7%">Blackberry</th> <th>HTC</th> <th width="7%">i-mobile</th> <th>LG</th> <th>Nokia</th> <th>Oppo</th> <th>Samsung</th> <th>Sony</th> <th width="8%">TriNet (dtac)</th> <th>อื่นๆ ระบุ <input name="other1" type="text" size="5" value=" <?php echo $result1['q1_other1'];?>" id="other_1" OnKeyDown="fncEnabled_other1()"></th> <th>อื่นๆ ระบุ <input name="other2" type="text" size="5" value=" <?php echo $result1['q1_other2'];?>" id="other_2" OnKeyDown="fncEnabled_other2()"></th> </tr> </thead> <tbody> <tr id="q1" class="light"> <td>Q1a เมื่อพูดถึงโทรศัพท์สมาร์ทโฟน มีแบรนด์ไหนบ้างที่คุณรู้จัก (คำตอบเดียว เอ่ยครั้งแรก)</td> <td><center><input name="q1a" type="radio" value="1" <? if($result1['q1a'] == 1){echo 'checked';}?> onClick="this.form.q1b_1.disabled = true;" onBlur="this.form.q1b_1.disabled = false;"></center></td> <td><center><input name="q1a" type="radio" value="2" <? if($result1['q1a'] == 2){echo 'checked';}?> onClick="this.form.q1b_2.disabled = true;" onBlur="this.form.q1b_2.disabled = false;"></center></td> <td><center><input name="q1a" type="radio" value="3" <? if($result1['q1a'] == 3){echo 'checked';}?> onClick="this.form.q1b_3.disabled = true;" onBlur="this.form.q1b_3.disabled = false;"></center></td> <td><center><input name="q1a" type="radio" value="4" <? if($result1['q1a'] == 4){echo 'checked';}?> onClick="this.form.q1b_4.disabled = true;" onBlur="this.form.q1b_4.disabled = false;"></center></td> <td><center><input name="q1a" type="radio" value="5" <? if($result1['q1a'] == 5){echo 'checked';}?> onClick="this.form.q1b_5.disabled = true;" onBlur="this.form.q1b_5.disabled = false;"></center></td> <td><center><input name="q1a" type="radio" value="6" <? if($result1['q1a'] == 6){echo 'checked';}?> onClick="this.form.q1b_6.disabled = true;" onBlur="this.form.q1b_6.disabled = false;"></center></td> <td><center><input name="q1a" type="radio" value="7" <? if($result1['q1a'] == 7){echo 'checked';}?> onClick="this.form.q1b_7.disabled = true;" onBlur="this.form.q1b_7.disabled = false;"></center></td> <td><center><input name="q1a" type="radio" value="8" <? if($result1['q1a'] == 8){echo 'checked';}?> onClick="this.form.q1b_8.disabled = true;" onBlur="this.form.q1b_8.disabled = false;"></center></td> <td><center><input name="q1a" type="radio" value="9" <? if($result1['q1a'] == 9){echo 'checked';}?> onClick="this.form.q1b_9.disabled = true;" onBlur="this.form.q1b_9.disabled = false;"></center></td> <td><center><input name="q1a" type="radio" value="10" <? if($result1['q1a'] == 10){echo 'checked';}?> onClick="this.form.q1b_10.disabled = true;" onBlur="this.form.q1b_10.disabled = false;"></center></td> <td><center><input name="q1a" type="radio" value="11" <? if($result1['q1a'] == 11){echo 'checked';}?> id="q1a_11" disabled="disabled" onClick="this.form.q1b_11.disabled = true;" onBlur="this.form.q1b_11.disabled = false;"></center></td> <td><center><input name="q1a" type="radio" value="12" <? if($result1['q1a'] == 12){echo 'checked';}?> id="q1a_12" disabled="disabled" onClick="this.form.q1b_12.disabled = true;" onBlur="this.form.q1b_12.disabled = false;"></center></td> </tr> <tr id="q1" class="dark"> <td>Q1b มีแบรนด์ไหนอีกไหมครับ/ค่ะ (ให้ผู้ตอบแบบสอบถามเอ่ยเพิ่มเติม)</td> <td><center><input name="q1b_1" type="checkbox" value="1" <? if($result1['q1b_1'] == 1){echo 'checked';}?> id="q1b_1" ></center></td> <td><center><input name="q1b_2" type="checkbox" value="2" <? if($result1['q1b_2'] == 2){echo 'checked';}?> id="q1b_2" ></center></td> <td><center><input name="q1b_3" type="checkbox" value="3" <? if($result1['q1b_3'] == 3){echo 'checked';}?> id="q1b_3" ></center></td> <td><center><input name="q1b_4" type="checkbox" value="4" <? if($result1['q1b_4'] == 4){echo 'checked';}?> id="q1b_4" ></center></td> <td><center><input name="q1b_5" type="checkbox" value="5" <? if($result1['q1b_5'] == 5){echo 'checked';}?> id="q1b_5" ></center></td> <td><center><input name="q1b_6" type="checkbox" value="6" <? if($result1['q1b_6'] == 6){echo 'checked';}?> id="q1b_6" ></center></td> <td><center><input name="q1b_7" type="checkbox" value="7" <? if($result1['q1b_7'] == 7){echo 'checked';}?> id="q1b_7" ></center></td> <td><center><input name="q1b_8" type="checkbox" value="8" <? if($result1['q1b_8'] == 8){echo 'checked';}?> id="q1b_8" ></center></td> <td><center><input name="q1b_9" type="checkbox" value="9" <? if($result1['q1b_9'] == 9){echo 'checked';}?> id="q1b_9" ></center></td> <td><center><input name="q1b_10" type="checkbox" value="10" <? if($result1['q1b_10'] == 10){echo 'checked';}?> id="q1b_10" ></center></td> <td><center><input name="q1b_11" type="checkbox" value="11" <? if($result1['q1b_11'] == 11){echo 'checked';}?> id="q1b_11" disabled="disabled" ></center></td> <td><center><input name="q1b_12" type="checkbox" value="12" <? if($result1['q1b_12'] == 12){echo 'checked';}?> id="q1b_12" disabled="disabled"></center></td> </tr>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script> function set_checkbox(){ var el_1 = document.getElementById("a1"); var el_2 = document.getElementById("a2"); if(el_1.checked || el_2.checked ) { document.getElementById("b1").disabled = false; document.getElementById("b2").disabled = false; document.getElementById("b3").disabled = false; }else{ document.getElementById("b1").disabled = true; document.getElementById("b2").disabled = true; document.getElementById("b3").disabled = true; } } </script> <body> <p>คำถามหลัก : <input type="radio" name="a" id="a1" value="radio" onchange="set_checkbox();" /> xxx <input type="radio" name="a" id="a2" value="radio" onchange="set_checkbox();" /> yyy<br /> คำถามย่อย : <input type="checkbox" name="b1" id="b1" disabled="disabled" /> aa <input type="checkbox" name="b2" id="b2" disabled="disabled" /> bb <input type="checkbox" name="b3" id="b3" disabled="disabled"/> cc
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง