VS
Size: a a a
VS
VS
AP
AP
VS
VS
D
import $ from "jquery";
$(".formset").each(function() {
const formset = this;
$(".formset__select", formset).change(event => {
$(".formset__form", formset)
.hide()
.filter("[data-id=" + event.target.value + "]")
.show();
});
});
$(".pop-up").each(function() {
const popup = this;
$(".pop-up__close", popup).click(() => {
$(popup).hide();
});
});
$(".launch-popup").click(function() {
const popupTargetBlock = this.id;
$(".pop-up").show();
$(".formset .formset__select")
.val(popupTargetBlock)
.trigger("change");
});
D
A
А
R
Т
D
G
AP
AP
D