开发者

How to focus(), as in having a blinking caret on a div that has been given the attribute contentEditable?

开发者 https://www.devze.com 2023-02-14 15:37 出处:网络
How to focus(), as in having a blinking caret on a div that has been given the attribute 开发者_Go百科contentEditable?

How to focus(), as in having a blinking caret on a div that has been given the attribute 开发者_Go百科contentEditable?

What I have so far is:

$("#q_edit_field_wrap")
 .attr("contentEditable", true)
 .focus();

As is, I have to actually click on the div first.

0

精彩评论

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