Verify checked checkbox javascript
<p>I'm trying to update in "real time" if I check and uncheck in a list of checkboxs.</p>

<p>With this code:</p>

<pre><code>window.onload = function () {
  var input = document.getElementById('listTaxi');

  function check() {
      var a = input.checked ? "checked" : "not checked";
      console.log(a);
  }
  input.onchange = check;
  check();
}
</code></pre>

<p>I can do this for one checkbox, but how can I make for multiple checkboxs? A list(div) of checkboxs?</p>

<p>Thanks!!</p>