Container in java script

Discussion in 'JavaScript' started by mashyum, Apr 1, 2010.

  1. #1
    hello all,
    i had problem when i'm running my project...the error is

    contents = doc.GetElementbyId("container").InnerHtml

    i need suggestion from all how to solve that problem.

    thanks :)
     
    mashyum, Apr 1, 2010 IP
  2. canadianguy_001

    canadianguy_001 Peon

    Messages:
    97
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i think you mean

    var contents = document.getElementById("container").innerHtml

    watch your capitalizations
     
    canadianguy_001, Apr 2, 2010 IP
  3. shpyo

    shpyo Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Why don't use jQuery?
    $('#element').html()
     
    shpyo, Apr 2, 2010 IP