I am trying to changing anchor, id, span or b tag text color, but it's not changing because of randomly changing id. 

Here is the HTML Code:

```
<a id="XgP7Wrq-1503732157576" tabindex="-1" href="javascript:void(0);" style=""><span class="thin">here</span> <b>sometext</b></a>

```

Here is the JS Code:

```
var x = getElementsbyid("XgP7Wrq-1503732157576");

x.style.color = '#00FF00';

```

else if any alternative way to achieve this?

Thanks