var $buttons = $('#journalTableBlock')
.find('button, a, input[type="button"], input[type="submit"]')
.filter(function () {
var label = $.trim($(this).text() || $(this).val());
return label === 'Редактировать' || label === 'Удалить';
});
console.log('Найдено кнопок:', $buttons.length);
console.log(
'Создано блоков справа:',
$('#journalTableBlock .certificate-right-actions').length
);
$buttons.each(function () {
console.log('Кнопка:', this.id);
console.log('Родитель:', this.parentElement.outerHTML);
});