How to disable dragging on Heat Map circles? | XM Community
Skip to main content

Hello!

I was wondering how I could disable dragging on all heat map circles for a question. I have set draggable to false but saw no changes. This is a snippet of my Javascript code: 

function setCircleBackground() {
    var heatmapCircles = document.querySelectorAll("#QID809 > div.Inner.BorderColor.Image > div > fieldset > div > div > div");
    
    heatmapCircles.forEach(function(heatmapCircle) {
        heatmapCircle.style.backgroundImage = 'url(LINK)';
        heatmapCircle.style.backgroundSize = 'cover';
        heatmapCircle.style.backgroundPosition = 'center';
        heatmapCircle.draggable = 'false';
    });
}

 

Be the first to reply!

Leave a Reply