- <script>
- jQuery(document).ready(function($) {
- "use strict";
- var urlParams = new URLSearchParams(window.location.search);
- var radio_id = urlParams.get('availability_id');
- $("input[name='item_meta[125]'][value='" + radio_id + "']").prop('checked', true);
- var checkbox_ids = urlParams.get('checbox_id');
- if (null != checkbox_ids && checkbox_ids.length>1) {
- var ids = checkbox_ids.split(',');
- $.each(ids, function(index, value) {
- value = $.trim(value);
- $("input[name='item_meta[124][]'][value='" + value + "']").prop('checked', true);
- });
- }
- });
- </script>