jQuery and .contentEditable

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:

  1. document.getElementById("contentDiv").contentEditable = "true";

But I would like to write it all in jQuery, so I tried this:

  1. $("#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