开发者

disable cursor/editing but keep ability to focus

开发者 https://www.devze.com 2023-01-05 18:43 出处:网络
Is there anyway to achieve this that works cross-browser? (开发者_开发百科Keeping solutions to pure JavaScript, HTML, and CSS) I\'m using JQuery, so JS in that would be best.

Is there anyway to achieve this that works cross-browser? (开发者_开发百科Keeping solutions to pure JavaScript, HTML, and CSS) I'm using JQuery, so JS in that would be best.

(disabled="disabled" doesn't allow focus)


Try using the readonly attribute instead of disabled, like <input readonly="readonly" />

0

精彩评论

暂无评论...
验证码 换一张
取 消