HTML5 contentEditable with jQuery

前端 未结 5 1378
情深已故
情深已故 2021-01-04 00:59

I have some elements that need to have the text inside editable, for this I am using the HTML 5 attribute contentEditable. I can\'t seem to do use jQuery for this using mult

5条回答
  •  渐次进展
    2021-01-04 01:53

    For some reason in IE10 only this seemed to work:

    $('#container').get(0).contentEditable = "true";
    

    Why attr didn't work I do not know.

提交回复
热议问题