Examples I have found about checking a checkbox with javascript have all referenced an ID. I need to check the box of a checkbox that is listed below.
<input data-marker-category="1" value="1" type="checkbox">
Example that uses ID = $("#_1").prop("checked", true);
The full code listed below
<div class="wpgmp_tab_item" data-container="wpgmp-category-tab-item"><input data-marker-category="1" value="1" type="checkbox"><a href="javascript:void(0);" class="wpgmp_cat_title accordion accordion-close">Access Points<span class="arrow"></span></a></div>
Aucun commentaire:
Enregistrer un commentaire