开发者

How to focus(), as in having a blinking caret on a div that has been given the attribute 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜