$(window).scroll(function(evt) {
console.log(evt)
});
$('select').on('change', function(){
$('#add-0').prop('checked', this.value === 'item-2')
})
https://jsfiddle.net/2hkj1dnL/ #id-facebook a {
position: relative;
z-index: 1;
}
#id-facebook a:after {
content: '';
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
background-image: url(...);
background-size: cover;
z-index: 2;
}
document.querySelectorAll('video').forEach(
el => el.addEventListener('play', function(event) {
console.log(this)
})
)
https://jsfiddle.net/c0b94wuq/document.addEventListener('play', function(event) {
console.log(event.target)
}, true) /* обязательно! */
https://jsfiddle.net/c0b94wuq/1/<p>
document.querySelector('#cb').addEventListener('change', function(){
this.form.querySelector('.btnSubmit').disabled = !this.checked
})
https://jsfiddle.net/fc3psps6/ но все те, которые видел они не рабочие
$('select').on('change', function(){
$('textarea').html(
$(this).val().join("\n")
)
})
https://jsfiddle.net/5e2frxmo/