1 頁 (共 1 頁)

依條件出現

發表於 : 2009-03-17 16:10:46
yehlu
<script>
function showhidden()
{
if(document.getElementById('month1').value != document.getElementById('month2').value)
{
document.getElementById('a123').style.display="inline";
}
}
</script>
起始月份<input type="text" name="month1" id="month1" value="" align="" size="10" maxlength="255" ><br>
結束月份<input type="text" name="month2" id="month2" value="" align="" size="10" maxlength="7" onChange='showhidden()'><br>

<div style="display:none;" id="a123">
選項<input type="radio" name="choose2" id="choose2" value="1" align="MIDDLE">平均&nbsp;
<input type="radio" name="choose2" id="choose2" value="2" align="MIDDLE">明細&nbsp;<br>
</div>