CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   Make text editable assignment (http://www.codingforums.com/showthread.php?t=282261)

Vraith 11-15-2012 03:34 PM

Make text editable assignment
 
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


All times are GMT +1. The time now is 09:28 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.