JavaScript
- 7 ответов
- 0 вопросов
12
Вклад в тег
'use strict';
document.addEventListener('DOMContentLoaded', () => {
let checkbox = document.querySelector('label[for="aux_prem"]');
checkbox.addEventListener('click', function()
{
let parent = this.parentNode;
( !parent.classList.contains('selected') ) ?
parent.classList.add('selected'):
parent.classList.remove('selected');
});
});
$('.curr').text( 1 );
$('.all').text( $('.owl-item').length );