Why is the colspan not working properly in this script? js bug or IE ?

Posted by Perpetualcoder on Stack Overflow See other posts from Stack Overflow or by Perpetualcoder
Published on 2010-12-21T21:48:55Z Indexed on 2010/12/21 21:54 UTC
Read the original article Hit count: 266

This question is related to this question I asked a little while back. The updated code is posted here. This to note is that i am looking to create a HTML table dynamically that looks similar to this:

<table>
  <tbody>
    <tr>
      <td colspan="3" align="right">Header</td>
    </tr>
    <tr>
      <td colspan="3" align="right">Header</td>
    </tr>
    <tr>
      <td colspan="3" align="right">Header</td>
    </tr>
    <tr>
      <td>Col1</td>
      <td>Col3</td>
      <td>Col4</td>
    </tr>
    <tr>
      <td>Col1</td>
      <td>Col3</td>
      <td>Col4</td>
    </tr>  

  </tbody>

</table>

I can get this done in markup but when I do it in js the colspan does not seem to work in IE7. Any hep will be greatly appreciated.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html