javascript cannot access textbox value marked as "false"
2011-01-04 17:30
471 查看
<script language="javascript" type="text/javascript">
function showAlert() {
// document.getElementById('isMultifaults'). = '1';
document.getElementById("isMultifaults").value = "1";
// document.getElementById('isMultifaults').innerText = "wo riririr";
//form1.elements
alert("goes into javascript:" + document.getElementById("isMultifaults").value);
document.getElementById('fault2').style.display = 'table-row';
document.getElementById('fault2con').style.display = 'table-row';
document.getElementById('fault2rcon').style.display = 'table-row';
}
</script>
solution: <td style="display:none">
<asp:Textbox ID="isMultifaults" runat= "server" Text="0"/>
</td>
function showAlert() {
// document.getElementById('isMultifaults'). = '1';
document.getElementById("isMultifaults").value = "1";
// document.getElementById('isMultifaults').innerText = "wo riririr";
//form1.elements
alert("goes into javascript:" + document.getElementById("isMultifaults").value);
document.getElementById('fault2').style.display = 'table-row';
document.getElementById('fault2con').style.display = 'table-row';
document.getElementById('fault2rcon').style.display = 'table-row';
}
</script>
solution: <td style="display:none">
<asp:Textbox ID="isMultifaults" runat= "server" Text="0"/>
</td>
相关文章推荐
- 修复mysql表快速解决"is marked as crashed and should be repaired"故障
- 升级as后,老工程gradle文件出现"dependencies' cannot be applied to '(groovy.lang.Closure)'警告的解决办法
- The Solution of "The calling thread cannot access this object beacuse a different thread owns it."
- 快速解决"is marked as crashed and should be repaired"故障以及is marked as crashed and last (automatic?)
- Exception in thread "main" org.hibernate.HibernateException: Access to DialectResolutionInfo cannot
- MySQL 解决"is marked as crashed and should be repaired"故障
- JavaScript 学习笔记(六)with(field) {……value.indexOf("@");……}、.focus()
- Freemaker:you just want "true"/"false" result as you are generting computer-language output, use "?c
- Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Chinese_PRC_CI_AI"
- onselectstart="javascript:return false;"
- [MySQL]快速解决"is marked as crashed and should be repaired"故障
- 使用SpringMVC注解@RequestParam(value="XXX",required=false)时需要注意的问题
- Cannot load excludes configuration file "/WEB-INF/decorators.xml" as specified in "sitemesh.xml" or "sitemesh-default.xml"(已解决)
- Oracle VirtualBox 启动报 "Cannot access the kernel driver!"的解决方案!
- [MySQL]快速解决"is marked as crashed and should be repaired"故障
- 悟透Javascript undefined,null,"",0这四个值转换为逻辑值时就是false &this关键字
- [MySQL]快速解决"is marked as crashed and should be repaired"故障
- javascript 中的undefined,null,”",0和false
- [MySQL]快速解决"is marked as crashed and should be repaired"故障
- [MySQL]快速解决"is marked as crashed and should be repaired"故障