title: I want to get the values of all the checked checkboxes
body: <pre><code>$(document).ready(function() {
      $('input[type = "checkbox"]').change(function() { //when a checkbox is checked
          var nvalues = $('input[type="checkbox"]:checked').map(function() {
              return this.value;
          }).get();
          if (nvalues.length &gt; 0) {
              var fin = nvalues.value;
              $('#here').html(fin);
          } else {
              $('#here').html("WTF");
          }
      });
  });
  </code></pre>
  
  <p>here I'am storing the checked values as array using map but the output is empty.</p>