$('#second-check').change(function() {
const href = $(this).prop('checked') ?
'https://google.com/' :
'https://youtube.com/';
$('a').attr('href', href);
});
document.querySelectorAll('div label').forEach((l) => {
l.parentNode.insertBefore(l, l.previousElementSibling);
});
$check = array_filter($arr['info']['reasons'], function($item) {
return $item['reason'] === 'NUMBER 1';
});
if ($check) {
// ...
} else {
// ...
}
const $items = $('.order__desc');
$items.click(function() {
$('.order__inner').eq($items.index($(this))).show();
});
document.getElementById("AAA").onmousedown = (e) => this.mouse_down(e);
document.onmousemove = () => this.manipulate_this_element();