<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script src="../../js/calendar.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="ch" runat=server type=checkbox value="水电工" />
<asp:TextBox ID="txtSJ2" runat="server" onclick="meizz_calendar(this)" onfocus="this.blur();"
Width="7%" CssClass="input2"></asp:TextBox>
</div>
</form>
</body>
</html>
想实现checkbox 选中时候 TextBox ID="txtSJ2" 可以填写.未选中不可填写
<head runat="server">
<title>无标题页</title>
<script src="../../js/calendar.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<input id="ch" runat=server type=checkbox value="水电工" />
<asp:TextBox ID="txtSJ2" runat="server" onclick="meizz_calendar(this)" onfocus="this.blur();"
Width="7%" CssClass="input2"></asp:TextBox>
</div>
</form>
</body>
</html>
想实现checkbox 选中时候 TextBox ID="txtSJ2" 可以填写.未选中不可填写
解决方案 »
- 请问高手们,actvex控件不能调用win32api
- 局部变量和全局变量的问题
- 编码问题,使用GB2312编码的页面向使用UTF-8编码的页面POST数据后如何把GB2312字符转换UTF-8输出
- URL里的参数值加密
- 实现“上传图片”功能时。出现了问题!急急急...
- 急救:asp.net网站老是被注入<script src=............>类的木马
- <asp:FileUpload ID="FileUpload1" runat="server" Width="329px" onpropertychange="<% seturl(this.value) %>"/>
- skin样式文件,非要放在App_Themes下面才可以用??
- DataGrid模板列的问题,在线等,急,谢谢了
- 请问各大侠,在WEB.config里DSN怎么设置
- 这个类该如何来编写(急,在线等)
- Gridview的问题
function DoCheck(ctrl, id)
{
if(ctrl.checked)
{
document.all(id).disabled = false;
}
else
{
document.all(id).disabled = true;
}
}</script>
function ch_onclick(obj)
{
if(obj.checked)
{
document.form1.txtSJ2.disabled = false;
}
else
{
document.form1.txtSJ2.disabled = true;
}
}
</script>