代码有问题:
.selected-items
块中;如果删除元素上部行中的复选框,则元素在下部行中消失,但是我希望它在两个方向上都起作用,当我单击下部行中的复选框时,元素将是什么呢?从第一行的相应元素中删除了该复选框。这是一个代码示例。
答案 0 :(得分:1)
为了解决第一个问题,您需要将事件对象传递给click
回调函数,如果选择的项目超过4个,则阻止该事件:
$(document).on('click', 'input[type="checkbox"]', function(e) {
if($('.selected-items .sample-item-wrapper').length > 3) {
e.preventDefault();
}
});
对于第二个问题,您需要取消选中.samples-items-wrapper
内的匹配复选框:
$("div.samples-items-wrapper div[data-sample-id='"+selected_item+"']").find(':checkbox').prop("checked", false);
这是一个有效的示例,其中包含我对原始代码段所做的更改:
$(document).on('click', 'input[type="checkbox"]', function(e) {
if($(this).prop("checked") === true){
if($('.selected-items .sample-item-wrapper').length > 3) {
alert('4 item max');
e.preventDefault();
}
else {
$(".selected-items").append(($(this).closest(".sample-item-wrapper").clone()));
$(".selected-items .sample-item-wrapper").attr("style","");
}
}
else if($(this).prop("checked") === false){
var selected_item = $(this).closest(".sample-item-wrapper").attr('data-sample-id');
$("div.selected-items div[data-sample-id='"+selected_item+"']").remove();
$("div.samples-items-wrapper div[data-sample-id='"+selected_item+"']").find(':checkbox').prop("checked", false);
}
});
.samples-items-wrapper, .selected-items {
display: flex;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="samples-items-wrapper">
<div data-sample-id="sample-21" class="sample-item-wrapper">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAACUCAIAAADpidd3AAAAA3NCSVQICAjb4U/gAAAAEHRFWHRTb2Z0d2FyZQBTaHV0dGVyY4LQCQAACKpJREFUeNrtnclvE1ccx99vZryByUJMHKhaUqrWVa8t6QHRK8uZSpWQ+C/ItXcWCdEjUtUjcKxQxKIqnHoospUqOXCgkEJYkmZfHNvjmV8Pxoljezye/b03vycOwdvM/D7v+1vevHkPEJHJ2xBR1/W5ubmpqakHDx4Ui8V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kozcsY0TCinans/G0lQqXEJNbZL70ZiBFJqqIEgnOfmNB4uNbaSDcgUpNQoe3BAqlXC7JjEVZKYSilS+Fy1kInGNqAeuJVksRqiXyZSpOmwcrgEX0wkSaJETj4aqFTJyAA1NPUIJ9Me/duXa7FMlGqlkidDd72YIIiGdaAQTtvp+RuLi86g7ty6tUOOjNwvNYJKLYTBh0RCPX7cfa6CuLW9vbu7W61WTdPce2d4aCiVTvse5HRdX1tfNwwjA5DTEqZpbpvmJpqqqmaz2UwmI1AxVq3VNtbXTUTGmAKQy+VS6bSqqs7UOTi4H5L30i2s1czlZWYYLs7MMIxarXb/3r3pp09nZma2trbM5u9cvXr19OnTvtcz8/PzN27cWFpa+uFQ9vrYp5u75fub679Wto+Njv546dLZs2dFgVqt1WZnZ3+5fbtcLjPGDmez169dm5iYGMnlnEEdGIAm132lQjKpnjjhrq99ePfuz2fPfi8W/3758kO5XK3XETGVSo2MjNTz+Xo+73tJUNnaesvYe8NYMUy1biCyDYYLiHWAzSNH9NFRUaDq1eru8PBSIrHBmGmayUrltydP3jJ25syZQqGgaZoLPfwPUH6ySGN/MsMAAAAASUVORK5CYII=" />
<div class="pretty p-default">
<input type="checkbox" />
<div class="state">
<label>1</label>
</div>
</div>
</div>
<div data-sample-id="sample-22" class="sample-item-wrapper">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAACUCAIAAADpidd3AAAAA3NCSVQICAjb4U/gAAAAEHRFWHRTb2Z0d2FyZQBTaHV0dGVyY4LQCQAACKpJREFUeNrtnclvE1ccx99vZryByUJMHKhaUqrWVa8t6QHRK8uZSpWQ+C/ItXcWCdEjUtUjcKxQxKIqnHoospUqOXCgkEJYkmZfHNvjmV8Pxoljezye/b03vycOwdvM/D7v+1vevHkPEJHJ2xBR1/W5ubmpqakHDx4Ui8V6vb73bjabHRo6piVPJlPDWmLIxGHDYCYCMKaqaqFQGDv+9YtXScOAPg83fOjm2NGpz05+Mzf3cmFxAtI/t767sTbz34cn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euJVksRqiXyZSpOmwcrgEX0wkSaJETj4aqFTJyAA1NPUIJ9Me/duXa7FMlGqlkidDd72YIIiGdaAQTtvp+RuLi86g7ty6tUOOjNwvNYJKLYTBh0RCPX7cfa6CuLW9vbu7W61WTdPce2d4aCiVTvse5HRdX1tfNwwjA5DTEqZpbpvmJpqqqmaz2UwmI1AxVq3VNtbXTUTGmAKQy+VS6bSqqs7UOTi4H5L30i2s1czlZWYYLs7MMIxarXb/3r3pp09nZma2trbM5u9cvXr19OnTvtcz8/PzN27cWFpa+uFQ9vrYp5u75fub679Wto+Njv546dLZs2dFgVqt1WZnZ3+5fbtcLjPGDmez169dm5iYGMnlnEEdGIAm132lQjKpnjjhrq99ePfuz2fPfi8W/3758kO5XK3XETGVSo2MjNTz+Xo+73tJUNnaesvYe8NYMUy1biCyDYYLiHWAzSNH9NFRUaDq1eru8PBSIrHBmGmayUrltydP3jJ25syZQqGgaZoLPfwPUH6ySGN/MsMAAAAASUVORK5CYII=" />
<div class="pretty p-default">
<input type="checkbox" />
<div class="state">
<label>2</label>
</div>
</div>
</div>
<div data-sample-id="sample-23" class="sample-item-wrapper">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAACUCAIAAADpidd3AAAAA3NCSVQICAjb4U/gAAAAEHRFWHRTb2Z0d2FyZQBTaHV0dGVyY4LQCQAACKpJREFUeNrtnclvE1ccx99vZryByUJMHKhaUqrWVa8t6QHRK8uZSpWQ+C/ItXcWCdEjUtUjcKxQxKIqnHoospUqOXCgkEJYkmZfHNvjmV8Pxoljezye/b03vycOwdvM/D7v+1vevHkPEJHJ2xBR1/W5ubmpqakHDx4Ui8V6vb73bjabHRo6piVPJlPDWmLIxGHDYCYCMKaqaqFQGDv+9YtXScOAPg83fOjm2NGpz05+Mzf3cmFxAtI/t767sTbz34cnb/+91/jv+Pj49PT0+Pi471etMambrusrKyuPHz9++PBhqVSq1+uKoqhqQtNSqfTwSO5EPn8qmf5WS+VV9aiJuboBptlksMM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ty6tUOOjNwvNYJKLYTBh0RCPX7cfa6CuLW9vbu7W61WTdPce2d4aCiVTvse5HRdX1tfNwwjA5DTEqZpbpvmJpqqqmaz2UwmI1AxVq3VNtbXTUTGmAKQy+VS6bSqqs7UOTi4H5L30i2s1czlZWYYLs7MMIxarXb/3r3pp09nZma2trbM5u9cvXr19OnTvtcz8/PzN27cWFpa+uFQ9vrYp5u75fub679Wto+Njv546dLZs2dFgVqt1WZnZ3+5fbtcLjPGDmez169dm5iYGMnlnEEdGIAm132lQjKpnjjhrq99ePfuz2fPfi8W/3758kO5XK3XETGVSo2MjNTz+Xo+73tJUNnaesvYe8NYMUy1biCyDYYLiHWAzSNH9NFRUaDq1eru8PBSIrHBmGmayUrltydP3jJ25syZQqGgaZoLPfwPUH6ySGN/MsMAAAAASUVORK5CYII=" />
<div class="pretty p-default">
<input type="checkbox" />
<div class="state">
<label>3</label>
</div>
</div>
</div>
<div data-sample-id="sample-24" class="sample-item-wrapper">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAACUCAIAAADpidd3AAAAA3NCSVQICAjb4U/gAAAAEHRFWHRTb2Z0d2FyZQBTaHV0dGVyY4LQCQAACKpJREFUeNrtnclvE1ccx99vZryByUJMHKhaUqrWVa8t6QHRK8uZSpWQ+C/ItXcWCdEjUtUjcKxQxKIqnHoospUqOXCgkEJYkmZfHNvjmV8Pxoljezye/b03vycOwdvM/D7v+1vevHkPEJHJ2xBR1/W5ubmpqakHDx4Ui8V6vb73bjabHRo6piVPJlPDWmLIxGHDYCYCMKaqaqFQGDv+9YtXScOAPg83fOjm2NGpz05+Mzf3cmFxAtI/t767sTbz34cnb/+91/jv+Pj49PT0+Pi471etMambrusrKyuPHz9++PBhqVSq1+uKoqhqQtNSqfTwSO5EPn8qmf5WS+VV9aiJuboBptlksMM2Xjg73MK7gX9efPXX7IWt9T8SycPHPonmqiWHurq6WiqV7t69+/z5c13XGWOZTGZwKH905NSXhZ8QPl/bSCJouqHUDUAG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maz2UwmI1AxVq3VNtbXTUTGmAKQy+VS6bSqqs7UOTi4H5L30i2s1czlZWYYLs7MMIxarXb/3r3pp09nZma2trbM5u9cvXr19OnTvtcz8/PzN27cWFpa+uFQ9vrYp5u75fub679Wto+Njv546dLZs2dFgVqt1WZnZ3+5fbtcLjPGDmez169dm5iYGMnlnEEdGIAm132lQjKpnjjhrq99ePfuz2fPfi8W/3758kO5XK3XETGVSo2MjNTz+Xo+73tJUNnaesvYe8NYMUy1biCyDYYLiHWAzSNH9NFRUaDq1eru8PBSIrHBmGmayUrltydP3jJ25syZQqGgaZoLPfwPUH6ySGN/MsMAAAAASUVORK5CYII=" />
<div class="pretty p-default">
<input type="checkbox" />
<div class="state">
<label>4</label>
</div>
</div>
</div>
<div data-sample-id="sample-25" class="sample-item-wrapper">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJwAAACUCAIAAADpidd3AAAAA3NCSVQICAjb4U/gAAAAEHRFWHRTb2Z0d2FyZQBTaHV0dGVyY4LQCQAACKpJREFUeNrtnclvE1ccx99vZryByUJMHKhaUqrWVa8t6QHRK8uZSpWQ+C/ItXcWCdEjUtUjcKxQxKIqnHoospUqOXCgkEJYkmZfHNvjmV8Pxoljezye/b03vycOwdvM/D7v+1vevHkPEJHJ2xBR1/W5ubmpqakHDx4Ui8V6vb73bjabHRo6piVPJlPDWmLIxGHDYCYCMKaqaqFQGDv+9YtXScOAPg83fOjm2NGpz05+Mzf3cmFxAtI/t767sTbz34cnb/+91/jv+Pj49PT0+Pi471etMambrusrKyuPHz9++PBhqVSq1+uKoqhqQtNSqfTwSO5EPn8qmf5WS+VV9aiJuboBptlksMM2Xjg73MK7gX9efPXX7IWt9T8SycPHPonmqiWHurq6WiqV7t69+/z5c13XGWOZTGZwKH905NSXhZ8QPl/bSCJouqHUDUAGHg9nwveQLBwe+K5aVRkoUV017LlfY2GhfOeOuboqE9Ryuby8vFwsFjc3NxtXmtC0ZCqTSg0MDn2B7EilCn46htoGop5I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vXr19OnTvtcz8/PzN27cWFpa+uFQ9vrYp5u75fub679Wto+Njv546dLZs2dFgVqt1WZnZ3+5fbtcLjPGDmez169dm5iYGMnlnEEdGIAm132lQjKpnjjhrq99ePfuz2fPfi8W/3758kO5XK3XETGVSo2MjNTz+Xo+73tJUNnaesvYe8NYMUy1biCyDYYLiHWAzSNH9NFRUaDq1eru8PBSIrHBmGmayUrltydP3jJ25syZQqGgaZoLPfwPUH6ySGN/MsMAAAAASUVORK5CYII=" />
<div class="pretty p-default">
<input type="checkbox" />
<div class="state">
<label>5</label>
</div>
</div>
</div>
</div>
<div class="selected-items"></div>