社区
ASP
帖子详情
急!!!关于checkbox的disable的问题。
nancyshzh
2004-04-19 12:33:59
通过数据库的中的字段值的判断。看flag的值是为N还是为Y。来动态的显示checkbox为可选或是不可选。请问怎么来写。请提供思路。
...全文
232
6
打赏
收藏
急!!!关于checkbox的disable的问题。
通过数据库的中的字段值的判断。看flag的值是为N还是为Y。来动态的显示checkbox为可选或是不可选。请问怎么来写。请提供思路。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
nancyshzh
2004-04-19
打赏
举报
回复
<input type="checkbox" name="lid" value="<%=rslid("lid")%>" disable="<% if rslid("flag")="n" then response.Write"true" end if%>" >
还是不会变灰
liuyangxuan
2004-04-19
打赏
举报
回复
得用If Rs("flag")="Y" Then<style DISPLAY:"<%Response.Write"none"%>">
若白师妹
2004-04-19
打赏
举报
回复
<input type=checkbox <%if flag="Y" then response.write "disabled" %>>
nancyshzh
2004-04-19
打赏
举报
回复
谢谢 你的做法不错。我自己已经实现了
xup
2004-04-19
打赏
举报
回复
<input type=checkbox <%if flag="Y" then response.write "disabled" %>>
Symanteck
2004-04-19
打赏
举报
回复
你的写法不对:
<input type=checkbox <%if flag="Y" then response.write "disabled" %>>
---------------------------------------
或者:
<script language=javascript>
function init(flag)
{
if (flag=="yes")
form1.chkbox1.disabled = true;
else
form1.chkbox1.disabled = false;
}
</script>
<body onload="init(<% =flag %>)"
<form name ="form1">
<input type="checkbox" name="chkbox1">
或者
<body onload="form1.chkbox1.disabled=true">
使用css禁用input、
checkbox
、select等html控件实现
dis
able
效果
用js的event可以用来阻止input,select,
checkbox
的默认事件,如 event.preventDefault() event.stopPropagation() ...以上所述是小编给大家介绍的使用css禁用input、
checkbox
、select等html控件实现
dis
able
dis
able
ditemscombobox_src.zip_ combobox
dis
able
_COMBOBOX_checkbo
部分选项可以处于非激活(
dis
able
)状态的复选框
easyui-tree-diasble
Checkbox
easyui-tree-diasble
Checkbox
树的结点为
dis
able
不能选取
tl866cs转tl866a V2.5
This is important if you leave the copy protect bit unchecked then the new firmware will
dis
able
the bootmode, so beware! 5.Serial number and device code section. Just click the write button in the ...
checkbox
dis
able
checkbox
指定了
dis
able
属性之后,不能将其内容post。解决方案,保存的时候将
dis
able
属性置为false,也可以加个隐藏控件来存需要上传的值。
ASP
28,391
社区成员
357,059
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章