0

i'm somewhat new to html5 and i'm trying to implement its contenteditable attribute through jquery and i have this

    var note = document.forms["form"]["add"].value;
    $("body").append("<div class=\"post_it\"><div class=\"flag\"></div><span class=\"note\" contenteditable=\"true\">" + note + "</span></div>");

now everything works except for the contenteditable feature? the div is appended and whatnot but i still can't edit it and i'm not quite sure why

4

1 回答 1

0

这是对跨浏览器可编辑内容的支持:http: //caniuse.com/#feat=contenteditable

于 2012-06-23T04:01:23.503 回答