Access multiple objects in a table cell

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jwbutler123
    New Member
    • Jan 2012
    • 2

    Access multiple objects in a table cell

    I have a table and each cell has three objects; textbox, context menu, and a hidden field. I use the cell.firstChild to access the textbox but how do I access the 2nd and 3rd objects?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    depending on your mark-up with subsequent nextSibling/nextElementSibl ing calls or via childNodes/children.

    Comment

    • jwbutler123
      New Member
      • Jan 2012
      • 2

      #3
      Originally posted by Dormilich
      depending on your mark-up with subsequent nextSibling/nextElementSibl ing calls or via childNodes/children.
      I'm new to java script. Where can I find information about navigating through the table object?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        you're already in the smallest table object (the cell). from there you have to do DOM navigation.

        various properties are listed here, from where you can get descriptions for each one.

        Comment

        Working...