I am looking to check a specific check box by calling its name. The name is c[featured_ad] and I will share what I've attempted below. Thanks for your help.
JavaScript:
<script type="text/javascript">
window.onload = function() {
$('input:checkbox[name=c[featured_ad]]').attr('checked',true);
}
</script>
HTML:
<div class="listing_extra_item">
<div class="listing_extra_cost price">$0.00 US</div>
<input name="c[featured_ad]" value="0" type="hidden">
<label>
<input name="c[featured_ad]" value="1" type="checkbox">
</label>
</div>