title: Why does Colspan not work after using jquery?
body: <p>I've been trying to create a collapsible table ,which has few rows which are visible all the time and few rows which expand on click.The expandable rows are supposed to have a single column of  colspan  4 ,but this doesn't work and the row's only column restricts itself to colspan 1.
  Here's the code that I have used :</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var coll = document.getElementsByClassName("breakrow");
  var i;
  for (i = 0; i &lt; coll.length; i++) {
    coll[i].addEventListener("click", function() {
      this.classList.toggle("active");
      var content = this.nextElementSibling;
      if (content.style.display === "block") {
        content.style.display = "none";
      } else {
        content.style.display = "block";
      }
    });
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table&gt;
    &lt;tr class="breakrow"&gt;
      &lt;td&gt;one&lt;/td&gt;
      &lt;td&gt;4324&lt;/td&gt;
      &lt;td&gt;&amp;nbsp;&amp;nbsp;&lt;img src="green.png" style="width: 30.5%;height: 2.5%;"&gt;&lt;/td&gt;
      &lt;td&gt;&lt;img class="down" src="down.png" style="width: 5vh;height: 1.5%;"&gt;&lt;/td&gt;
    &lt;/tr&gt; 
    &lt;tr class="datarow" style="display: none;"&gt;
      &lt;td  colspan="4"&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>You can have a look at the problem : <a href="https://drive.google.com/drive/folders/1rd77LXNPc_Gd_cHfyL74oyga9H7y-qGO?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/drive/folders/1rd77LXNPc_Gd_cHfyL74oyga9H7y-qGO?usp=sharing</a>
  Any fixes to my problem ?</p>