title: How do I take value with jQuery
body: <p>standard input, select box and multiple select box can also get the desired value, it works.. but how can i get the value with jquery in this code snippet?</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-js lang-js prettyprint-override"><code>&lt;script&gt;
  $(document).ready(function(){
    jQuery('#checkboxesmarka').change(function(){
      var id=jQuery('#checkboxesmarka').val();
        alert(id);
    });
  });
  &lt;/script&gt;</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="checkboxesmarka"&gt;
  &lt;?php
  while($markacek=$markasor-&gt;fetch(PDO::FETCH_ASSOC)) { ?&gt;
    &lt;label for="&lt;?php echo "marka".$markacek['marka_id'] ?&gt;"&gt;
      &lt;input type="checkbox" id="&lt;?php echo "marka".$markacek['marka_id'] ?&gt;" name="marka_id[]" value="&lt;?php echo $markacek['marka_id'] ?&gt;" /&gt;&lt;?php echo $markacek['marka_name'] ?&gt; &lt;/label&gt;
      &lt;? } ?&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>