frontend dev
box.unlock()
console.log(box.content)
Note: Using characters except ASCII letters and digits, '_', '-' and '.' may cause compatibility problems, as they weren't allowed in HTML 4. Though this restriction has been lifted in HTML 5, an ID should start with a letter for compatibility.https://developer.mozilla.org/ru/docs/Web/HTML/Glo...
$('img').on('click', function(){
let src = $(this).attr('src')
$('input').val(src)
})
Так ведь тоже не подойдет?