<head>
<title>Create Contract</title>
<SCRIPT language="JavaScript">
function Change() {
if(document.all("CONTRACT_NUM") == true) {
document.all("actionObject_number").disabled = true;
} else{
document.all("actionObject_number").disabled = false;
}
}
</SCRIPT>
</head><TD width="85%" BGCOLOR="#DCDAFC">
<html:checkbox property="CONTRACT_NUM" onclick="Change()"></html:checkbox>
Auto
<html:text property="actionObject_number" size="32" disabled="true"></html:text>
<html:errors property="actionObject_number" />
</TD>
这样写的话进入页面是只读文本框 把复选框的勾去掉是可写 但是再把复选框勾勾上后 应该是只读 可是是可写 郁闷啊
<title>Create Contract</title>
<SCRIPT language="JavaScript">
function Change() {
if(document.all("CONTRACT_NUM") == true) {
document.all("actionObject_number").disabled = true;
} else{
document.all("actionObject_number").disabled = false;
}
}
</SCRIPT>
</head><TD width="85%" BGCOLOR="#DCDAFC">
<html:checkbox property="CONTRACT_NUM" onclick="Change()"></html:checkbox>
Auto
<html:text property="actionObject_number" size="32" disabled="true"></html:text>
<html:errors property="actionObject_number" />
</TD>
这样写的话进入页面是只读文本框 把复选框的勾去掉是可写 但是再把复选框勾勾上后 应该是只读 可是是可写 郁闷啊
解决方案 »
- 求救,我重装了mysql后,系统报Connections could not be acquired from the underlying database
- weblogic热替换开发
- JEECMS部署到myeclipse时500错误
- 请问通过el表达式name: ${param.org.parent.parent.name }不能够取出来吗
- 大家帮忙提供几个题可以考查答题人对struts,spring,ibatis的使用情况
- ClassPathXmlApplicationContext 载入多个配置文件问题
- 请教高手:关于webservice安全的伪装和越权访问的问题
- struts2验证框架(xml)可以写或条件的验证吗
- 高手赐教!!!!1000分跪求!!!配置方法!!
- 如何快速方便高效的使用xml作为参数在系统中传递?问各位大虾了(高分求教)
- DWR小问题
- 那位高手。用javamail 发送邮件成功过。看一下吧!
这个是javascript问题,和struts没有什么关系的
1-1000000
满足一到一百万之间的都可以 包括1和1000000
小弟万分感谢了
我做了1到1000的 ^([1-9]|[1-9]\d|[1-9]\d\d|1000)$
貌似匹配一到一百万的这样的写法是很冗长的
有没有好点的写法匹配一到一百万范围呢