const elements = document.getElementsByClassName('test')
Array.from(elements).forEach(element => {
element.addEventListener('click', () => {
element.style.backgroundColor = 'red'
})
})
$('.class').on('click', function(){
$(this).show()
})