doubleSliders[i].getElementsByClassName('left-slider')[0].setAttribute('max',doubleSliders[i].dataset.max); code example
Example: javascript document object model getElementsByClassName
document.getElementsByClassName('test')
document.getElementsByClassName('test')