14.09.2021, 07:27
Add pointer-events: all to the CSS properties:
Code:
var quadre = $("<div id='requadre'></div>").css({
position: 'relative',
width: 1800, height: 800,
top: 70, left: 100,
border: '1px solid white',
overflow: 'auto',
background: 'black',
'pointer-events': 'all'
}).appendTo('#plan-59');