$('.orders').on('click', '.item__edit-button' function() { ... })
let header = document.querySelectorAll('.select__header')
let item = document.querySelectorAll('.select__item')
let select = document.querySelector('.select')
let images = document.querySelectorAll('.select__item img')
header.forEach(i => {
i.addEventListener('click', () => {
i.parentElement.classList.toggle('active')
})
})
item.forEach(i => {
i.addEventListener('click', el => {
let text = el.target.textContent;
let currentText = select.querySelector('.select__current');
currentText.innerText = text;
select.classList.remove('active');
})
})
.buttonClass {
cursor: pointer;
}