首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

文本域不能输入中文的困惑,该怎么处理

2012-02-11 
文本域不能输入中文的困惑就是 inputtypetext 和 textarea我是在页面载入时让其只读,点击一个按钮解

文本域不能输入中文的困惑
就是 <input   type=text> 和 <textarea>
我是在页面载入时让其只读,点击一个按钮解除只读,但解除只读后文本域都不能输入中文了,就是在中文输入法下也只能输入字母,不知道为什么。是不是还有什么属性要设置呢?

[解决办法]
<input type= "text " value= "read only " readonly id= "txtReadonly ">
<input type= "button " onclick= "document.getElementById( 'txtReadOnly ').readOnly = false; " value= "Click to write text ">

似乎没问题...

是不是自己系统的问题~
[解决办法]
<input type= "text " style= "ime-mode:active "> 和 <textarea>
这样行吗?

热点排行
Bad Request.