title: Getting a checkbox from a table field
body: <p>Good afternoon, below is the code in it I am getting fields from my table. The 0 field contains a checkbox, how can I find out if it is checked or not(true or false)? You need to change this line: console.log (td.item (f));</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-html lang-html prettyprint-override"><code>var table = document.getElementsByClassName("table-sm");
  for (var i = 0; i &lt; table.length; i++) {
    var tr = table.item(i).getElementsByTagName("tr");
    for (var j = 0; j &lt; tr.length; j++) {
      var trr = tr.item(j);
      var td = tr.item(j).getElementsByTagName("td");
  
      for (var f = 0; f &lt; td.length; f++) {
        if (f === 0) console.log(td.item(f));
        console.log(td.item(f).innerText);
      }
    }
  }
  
     </code></pre>
  </div>
  </div>
  </p>