title: too see if checkboxes have been checked javascript
body: <p>Hallo </p>
  
  <p>How would I go about in checking whether checkBox has been checked in javascript?
  I C# it is simple enough</p>
  
  <pre><code>int selected = 0;
          for (int loop = 0; loop &lt; chkMeal.CheckedItems.Count; loop++)
          {
              selected++;
          }
          if (selected &gt; 1)
          {
              MessageBox.Show("only one meal allowed", "Halt", MessageBoxButtons.OK, MessageBoxIcon.Error);
          }
  </code></pre>
  
  <p>How could I do a simlar thing with javascript?</p>
  
  <p>kind regards
  Arian</p>