I have DOM element in array
this.object = \"color1 text1
Use jQuery to avoid any cross browser issues. Assuming you have the div, use div.find('span:eq(1)');
div.find('span:eq(1)');
Working example.
Working example for multiple items.
Another example showing the text being updated.