Using JQuery how to check if any checkboxes are checked and then set the first to checked if none are?
<p>Using JQuery how to check if any checkboxes are checked and then set the first to checked if none are checked. </p>

<pre><code>var Checked = $('.ProductImageGallery').find(".DfaultCheckbox:selected);

if (Checked == null) { $('.DfaultCheckbox:first').attr('checked', true) }
</code></pre>
