title: Get the count of checkboxes checked in a List using Javascript
body: <p>I have a multiple Input Checkbox List and I want to create a JS function that when the user selects more than specified count items in the checkbox list, it will reject the action but if they have fewer, it will do another function.</p>
  
  <p>Need to know how to get the number of elements selected using Javascript, I'm having a really tough time doing this.</p>