jQuery and .contentEditable
Hello,
I'm trying to make my own small CMS system, but I'm facing the problem that I can't seem to set a div's contentEditable to "true"in jQuery. When I write this it works:
- document.getElementById("contentDiv").contentEditable = "true";
But I would like to write it all in jQuery, so I tried this:
- $("#contentDiv").contentEditable = "true";
That didn't work. I tried a few more possible functions but none of them worked. Is there a specific jQuery function for this?
Regards,
Bart