It is necessary to transfer id from one form of checkboxes and check on the second form, the same values.
$(".zones").on('click', function() { var log = $( ".zones :checked" ).map(function () { return this.value; }).get().join(" "); console.log(log); check1 = log; }) So in the check1 variable there is a set of checked id. How can I transfer that same id set to another div -
$(".cities_zones").checked = true;//где тут указать id ?
.prop('checked')/.checked = trueattach? - Vlad Shkuta