Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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 . ....
    Last edited by Vraith; 11-15-2012 at 03:48 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    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
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • Users who have thanked abduraooft for this post:

    Vraith (11-15-2012)

  • #3
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    That gave me something to work with.

    Thanks mate


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •