Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

get a span inside a div with div id javascript

var toggle = <HTMLDivElement>document.getElementById('status_toggle'+index);
toggle.getElementsByTagName('span')[0].style.background = '#2dce89';
 
PREVIOUS NEXT
Tagged: #span #div #div #id #javascript
ADD COMMENT
Topic
Name
3+1 =