Empty DOMNodes?

Discussion in 'Mac Programming' started by BollywooD, May 10, 2010.

  1. BollywooD macrumors 6502

    BollywooD

    Joined:
    Apr 27, 2005
    Location:
    Hamburg
    #1
    so I am selecting certain DOMElements, and hiding them, and I would also like to hide the parent Element - as long as it has no other child elements.

    How do I go about iterating through a DOMNode, to find all it's child elements?:confused:
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
  3. BollywooD thread starter macrumors 6502

    BollywooD

    Joined:
    Apr 27, 2005
    Location:
    Hamburg
    #3
    lol, so obvious!
    ive been staring at code toooo long.:D

    thanks
     

Share This Page