1. <script>
  2. jQuery(document).ready(function($) {
  3. "use strict";
  4. var urlParams = new URLSearchParams(window.location.search);
  5. var radio_id = urlParams.get('availability_id');
  6. $("input[name='item_meta[125]'][value='" + radio_id + "']").prop('checked', true);
  7. var checkbox_ids = urlParams.get('checbox_id');
  8. if (null != checkbox_ids && checkbox_ids.length>1) {
  9. var ids = checkbox_ids.split(',');
  10. $.each(ids, function(index, value) {
  11. value = $.trim(value);
  12. $("input[name='item_meta[124][]'][value='" + value + "']").prop('checked', true);
  13. });
  14. }
  15. });
  16. </script>