var toggle = <HTMLDivElement>document.getElementById('status_toggle'+index); toggle.getElementsByTagName('span')[0].style.background = '#2dce89';