以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  js 如何使用指定id 的input 变成只读  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=186294)

--  作者:ap9709130
--  发布时间:2023/4/19 20:48:00
--  js 如何使用指定id 的input 变成只读
 老师

   WEUI框架中,id为a 的input 想通过js 设置成只读。

   document.getElementById("a").ReadOnly = true 这个代码不报错,但起不到效果,请问要如何实现?


--  作者:有点蓝
--  发布时间:2023/4/20 9:10:00
--  
readOnly,注意大小写