skip to Main Content

Jquery – WordPress site – applying CSS when certain criteria are met

This is the div on the site for a particular booking - in this example the number 7568 is the tour ID. <div class="tourmaster-template-wrapper" id="tourmaster-payment-template-wrapper" data-ajax-url="https://www.domainname.co.uk/wp/wp-admin/admin-ajax.php" data-booking-detail="{&quot;tour-id&quot;:&quot;7568&quot;} > For particular tour ID's I would like to hide another div on…

VIEW QUESTION

Why multiple checkboxes not working in my Javascript/Jquery?

My script doesn't work for multiple checkboxes, it only returns 1 value, not according to what is checked. Where's the mistake? Javascript/jQuery: <script type="text/javascript"> function getProsesAlo() { var cblist = { 'period[]' : []}; $(":checked").each(function() { cblist['period[]'].push($(this).val()); }); $.post("proses-alokasi.php", {…

VIEW QUESTION
Back To Top
Search