the_little,
сократил, до миниммума
смотрите что в консоли
$(function() {
$(".step2-blocks").each(function(indx, el) {
var del = $(".delbutton", el); console.log($(".add", el).length);
function show() {
del.toggle($(".add", el).length > 1)
}
show();
$(".addbutton", el).on("click", show);
del.on("click", show)
})
});
|