SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2009
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    document.getElementByID

    Hi

    I want to use the document.getElementByID method to change the text of an element.

    It works and replaces the old text but the new text is lower down when I want the new text to be on the same line.

    Lewis

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    It's impossible to tell what the problem is from that description. Post some code and then we might get a bit further.

    My guess is that you're not replacing the text node itself but the entire element, but we'll have to see.


Bookmarks

Posting Permissions

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