html中控制input标签 readonly属性的javascript怎样写? document.formName.inputName.readonly=true 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 咋个不行呢?<form name="testForm"><input name="fileName"><input type="button" value="button" onClick="javascript:document.testForm.fileName.readonly=true"></form> 楼主.注意:readonly为readOnly测试通过! 我想问一下,按钮有readonly属性吗 <form name="testForm"><input type="text" name="fileName"><input type="button" value="button" onClick="disabled()"></form><script>function disabled(){document.forms["testForm"].fileName.readOnly=true;}</script> 关于ssh框架问题!!!!!!!!求助各位大虾 使用过uploadify的朋友请进!~ 100分求救!十万火急!fat32格式磁盘配置tomcat的问题 关于日期问题(100)分,在在线等(java) <%= %>放在javascript语句里面为什么没有用啊? 高分求:上传时检测判断,超过限制就不给传 Servlet直接访问资源文件 紧急 急,新手求助!!!!!!!!!! B/S数据传输加密 jsp网站 工作半年,没有方向感,请高手指教!
<form name="testForm">
<input name="fileName"><input type="button" value="button" onClick="javascript:document.testForm.fileName.readonly=true">
</form>
测试通过!
<input type="text" name="fileName"><input type="button" value="button" onClick="disabled()">
</form>
<script>
function disabled(){
document.forms["testForm"].fileName.readOnly=true;
}
</script>