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.
精彩评论