This had me scratching my head for a while, so I wanted to share it in
case it might help someone else:

It seems that using JQuery's attr() function to set a table cell's
colspan attribute does not always work properly.  Sometimes although
the attribute is set properly in the DOM (which can be verified if you
read the colspan attribute with attr), IE still renders the cell as
only 1 column wide instead of the colspan value.

What seems to work best is something like this:
$(jQueryTableCells).each(function() { this.colSpan = someValue; });

The JavaScript implementation of colSpan seems to work fine.  Looks
like a problem with IE's implementation of the DOM rather than with
JQuery, but I couldn't find it documented anywhere, so I wanted to
post it here.

-Nate

Reply via email to