neda_barnamenevis
دوشنبه 09 مهر 1386, 09:12 صبح
سلام من یک همچین کدی دارم که در صفحه htmlبهم به راحتی جواب می ده و اجرا می شه ولی در php radiobuttonها را نشان می ده ولی روی radio buttonسومی که می ریم
checkboxرا باز نمی کنه
علت چیه؟
<html>
<head></head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="244" border="1">
<tr>
<td width="234"><label>
<input type="radio" name="RadioGroup1" value="radio" onclick="chbx.style.display='none'" />
Radio1</label></td>
</tr>
<tr>
<td><label>
<input type="radio" name="RadioGroup1" value="radio" onclick="chbx.style.display='none'" />
Radio2</label></td>
</tr>
<tr>
<td><label>
<input type="radio" name="RadioGroup1" value="radio" onclick="chbx.style.display='inline'" />
Radio3
<br />
<div style="display:none" id="chbx">
<input type="checkbox" name="checkbox22" value="checkbox" />
check1<br />
<span>
<input type="checkbox" name="checkbox2" value="checkbox" />
check3 </span><input type="text" name="textfield" />
<br />
<span>
<input type="checkbox" name="checkbox3" value="checkbox" />
</span> check4<br />
<span>
<input type="checkbox" name="checkbox4" value="checkbox" />
</span> check5</label>
</div></td>
</tr>
<tr>
<td><label>
<input type="radio" name="RadioGroup1" value="radio" onclick="chbx.style.display='none'" />
Radio4</label></td>
</tr>
</table>
</form>
</body>
</html>
checkboxرا باز نمی کنه
علت چیه؟
<html>
<head></head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="244" border="1">
<tr>
<td width="234"><label>
<input type="radio" name="RadioGroup1" value="radio" onclick="chbx.style.display='none'" />
Radio1</label></td>
</tr>
<tr>
<td><label>
<input type="radio" name="RadioGroup1" value="radio" onclick="chbx.style.display='none'" />
Radio2</label></td>
</tr>
<tr>
<td><label>
<input type="radio" name="RadioGroup1" value="radio" onclick="chbx.style.display='inline'" />
Radio3
<br />
<div style="display:none" id="chbx">
<input type="checkbox" name="checkbox22" value="checkbox" />
check1<br />
<span>
<input type="checkbox" name="checkbox2" value="checkbox" />
check3 </span><input type="text" name="textfield" />
<br />
<span>
<input type="checkbox" name="checkbox3" value="checkbox" />
</span> check4<br />
<span>
<input type="checkbox" name="checkbox4" value="checkbox" />
</span> check5</label>
</div></td>
</tr>
<tr>
<td><label>
<input type="radio" name="RadioGroup1" value="radio" onclick="chbx.style.display='none'" />
Radio4</label></td>
</tr>
</table>
</form>
</body>
</html>