jquery toggle table colspan problem

jquery toggle table colspan problem

I am using a table for some data and when i click on the edit button i want to toggle a row but for some reason the colspan tags doesn’t work(it works when i not use the toggle)



<table>

  <tr>

   <td>1</td>

   <td>2</td>

   <td>3</td>

   <td>4</td>

   <td>5 (click)</td>

  </tr>

  <tr class="toggle">

   <td colspan="5">lorem ipsum..........</td>

  </tr>

</table>


when i click on the toggle button the colspan=â€