swapping table cells

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • foldface@yahoo.co.uk

    #1

    swapping table cells

    Hi
    How in javascript can I swap the cells in a table? I know I can copy
    the innerHTML and style and other bits manually but can I just swap 2
    cells in different rows?

    Ta
    F
  • Martin Honnen

    #2
    Re: swapping table cells



    foldface@yahoo. co.uk wrote:

    [color=blue]
    > How in javascript can I swap the cells in a table?[/color]

    Using the W3C DOM you can create and replace nodes, see
    http://www.faqts.com/knowledge_base/...html/aid/31307
    for code to swap table cells.

    --

    Martin Honnen
    http://JavaScript.FAQTs.com/

    Comment

    Working...