jQuery Change Html Content

Posted by Mircea on Stack Overflow See other posts from Stack Overflow or by Mircea
Published on 2010-03-08T21:05:21Z Indexed on 2010/03/08 21:06 UTC
Read the original article Hit count: 298

Filed under:
|

Hi, I have the following HTML5 content:

<section contenteditable="true" id="editable" class="ui-selectee ui-selected">
<span>something</span>
<span>something</span>
<span>something</span>
</selection>

I have a toggle function that turns on edit mode. I want to make the contenteditable="true" or contenteditable="false" on that toggle function. I've it would be easy if I would have to change a class or ID. Ive tryed to .html the #edit or append but I was unable to.

Any tips on changing contenteditable="true" to contenteditable="false" ? Thanx

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about html