Why can't I print this checkbox array?
<p>I'm trying to write an array to a variable so that I can print it in a div, however I can't seem to get it right no matter what I do.</p>

<pre><code>&lt;input type="checkbox" class="checkboxes" value="1" checked="checked" /&gt;
&lt;input type="checkbox" class="checkboxes" value="2" /&gt;
&lt;input type="checkbox" class="checkboxes" value="3" checked="checked" /&gt;
&lt;input type="checkbox" class="checkboxes" value="4" checked="checked" /&gt;
</code></pre>

<p>Should return 1,3,4</p>

<p>So I have:</p>

<pre><code>var variable1 = $('input:checkbox:checked.checkboxes').map(function () {
  return this.value;
  }).get();
  $("#somediv").html(variable1);
</code></pre>

<p>However the div is empty, does anyone know where I went wrong?</p>
