cell.innerhtml returns incorrect value

Discussion in 'JavaScript' started by queen_mary, Nov 10, 2009.

  1. #1
    I'm trying to verify the content of cells in my table.

    If I just use alert to return the value of innerHTML of the cell, I am getting the correct value.

    But if I use it in

    if(cell[id].innerinnerHTML == "predefined cell content")
    alert("something");

    The alert is not showing.


    But if I use

    if(cell[id].innerinnerHTML == " ")
    alert("something");

    It will give the alert.

    And further, if I put



    if(cell[id].innerinnerHTML != " ")
    alert(cell[id].innerinnerHTML);


    I am getting "predefined cell content"

    Why is this so?

    How can use if(cell[id].innerinnerHTML == "predefined cell content") and get a similar output ?

    Please help

    Thanks
     
    queen_mary, Nov 10, 2009 IP
  2. queen_mary

    queen_mary Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No need to reply


    i fixed it !!


    Sorry for any inconvenience
     
    queen_mary, Nov 10, 2009 IP
  3. ajaXpert

    ajaXpert Member

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    there is nothing like innerinnerHTML :)
     
    ajaXpert, Nov 26, 2009 IP