Question: I have this code:

```
LinearGradient backlg = new LinearGradient(0, 0, 10, 10,
            new int[]{Color.BLACK, Color.BLACK, Color.BLUE, Color.BLUE},
            new float[]{0,0.5f,.55f,1}, Shader.TileMode.REPEAT);

```

Which creates diagonal bands alternating between blue and black. They go from Bottom left to top right so here is my question, what do I change to make it go from top left to bottom right?

Answer: 
You can just use [`.siblings()`](http://api.jquery.com/siblings/) here, like this:

```
var myId = $(this).siblings('.img_class').find("img").attr("id");

```

For the *Why?* part: because there is no `.thumb-img` in your markup...also there's no need to re-wrap the result, you can just continue the chain.
the **closest** jQuery function looks for the closest element matching the selector, but only among the ancestors of the current selection. cf [jquery.closest documentation](http://api.jquery.com/closest/)

Thus you cannot use closest to find what looks like a sibling.

Nick's answer will certainly help you fix your problem.