function isSec()
{
if(is_special.Checked == false)
{
specialPrice.Enabled=False;
due.Enabled=False;
}
}
这是什么语言啊?
is_special是变量吗? 如果是对象的ID,请使用document.getElementById("is_special");
注意属性名的大小写,javascript是大小写敏感的语言
Checked -> checked
Enabled -> disabled
{
if(is_special.Checked == false)
{
specialPrice.Enabled=False;
due.Enabled=False;
}
}
这是什么语言啊?
is_special是变量吗? 如果是对象的ID,请使用document.getElementById("is_special");
注意属性名的大小写,javascript是大小写敏感的语言
Checked -> checked
Enabled -> disabled
<tr>
<td><asp:CheckBox Runat="server" Text="特价产品" id="is_special"></asp:CheckBox></td>
<TD align="right" width="70" height="20">特价价格:</TD>
<td><asp:textbox id="specialPrice" runat="server" Width="50px">0</asp:textbox></td>
<TD align="right" width="70" height="20">特价到期:</TD>
<td height="20"><asp:TextBox Runat="server" onfocus="calendar();" id="due"></asp:TextBox></td>
</tr>
</table>
{
if(!document.getElementById("is_special").checked)
{
document.getElementById("specialPrice").disabled=true;
document.getElementById("due").disabled=true;
}
}