...

View Full Version : Make text editable assignment



Vraith
11-15-2012, 03:34 PM
Hello :)

Yeah i know im not supposed to post homework here. But im in trouble with this distance course. I would be more than greatful if someone could tell me where to look. Cause i couldnt find it in the book or on the internet so far
( so far= many hours)..... I have made a few attempts,well.... i failed hard :P

My assignment is to make all <p class="haha"> editable withing a box by a mouseclick along with a Save and a Cancel button. Im just allowed to use Javascript

Dont have to do the assignment for me, just point me in the right direction :thumbsup: . ....

abduraooft
11-15-2012, 03:49 PM
To make an element editable by a click, you may add onclick="this.contentEditable=true" on it. Not sure how/where you need to save it.
See http://html5demos.com/contenteditable

Vraith
11-15-2012, 04:34 PM
That gave me something to work with.

Thanks mate



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum