jquery コードを必要に応じて動作させることができなかったので、php ループを使用して選択を HTML に書き込み、次のように入力しました。
<td id="selmn_td"><label>Times: </label>
<select name="selectMN" id="selectorMN" ><?PHP
for ($i = 1;$i<13;$i++)
echo "<option value=" . $i . ">" .$i . "</option>";
?>
</select></td>
</tr>
<tr>
<td id="selwk_td"><label>Times: </label>
<select name="selectWK" id="selector" style="visibility:hidden" ><?PHP
for ($i = 1;$i<53;$i++)
echo "<option value=" . $i . ">" .$i . "</option>";
?>
</select><label id="weeks"></label><label id="months"></label></td>
<td> </td>
<td> </td>
<td id="weekdays" colspan="2">
<input type="checkbox" name="weekdays[]" value="Monday" id="weekdays_0" />Mon</label><label>
<input type="checkbox" name="weekdays[]" value="Tuesday" id="weekdays_1" />Tues</label><label>
<input type="checkbox" name="weekdays[]" value="Wednesday" id="weekdays_2" />Wed</label><label>
<input type="checkbox" name="weekdays[]" value="Thursday" id="weekdays_3" />Thu</label><label>
<input type="checkbox" name="weekdays[]" value="Friday" id="weekdays_4" />Fri</label><label>
<input type="checkbox" name="weekdays[]" value="Saturday" id="weekdays_5" />Sat</label><label>
<input type="checkbox" name="weekdays[]" value="Sunday" id="weekdays_6" />Sun</label>
</td>
次に、次の jquery を使用して、入力フィールドを表示および非表示にしました。
$('#RadioGroup1_0').change(function()
{
document.getElementById('radio_duration_td').style.visibility="visible";
document.getElementById('selwk_td').style.visibility="visible";
document.getElementById('selector').style.visibility="visible";
document.getElementById('weekdays').style.visibility="visible";
$('#RadioGroup1_1').change(function()
{
document.getElementById('radio_duration_td').style.visibility="hidden";
document.getElementById('selwk_td').style.visibility="hidden";
document.getElementById('selector').style.visibility="hidden";
document.getElementById('weekdays').style.visibility="hidden";
document.getElementById('selmn_td').style.visibility="hidden";
}
);
$('#radio_duration_1').change(function()
{
document.getElementById('weeks').style.visibility="hidden";
document.getElementById('weekdays').style.visibility="hidden";
document.getElementById('selmn_td').style.visibility="visible";
document.getElementById('selector').style.visibility="hidden";
document.getElementById('selwk_td').style.visibility="hidden";
//document.getElementById('selwk_td').style.visibility="visible";
//document.getElementById('selector').style.visibility="visible";
}
);
$('#radio_duration_2').change(function()
{
document.getElementById('weekdays').style.visibility="visible";
document.getElementById('selector').style.visibility="visible";
document.getElementById('selwk_td').style.visibility="visible";
document.getElementById('selmn_td').style.visibility="hidden";
//document.getElementById('months').style.visibility="hidden";
}
これは理想的ではありませんが、締め切りが迫っている場合は、うまくいくものを選択する必要があります。これに関する提案は引き続き歓迎されます。