$(#selector) Query

$(#selector) Query

Hi guys , 
I'm new here , and I'm stuck with a problem using jQuery , I need your help

I'm controlling some elements with same class and ID's . but they are repeated in different containers . and I would like to control  these elements in each container that has an ID one per one (those containers have ID's like ( c1 ,c2 ,c3 ) and I would like to make the number beside (c) controlled by (If) statement to go through those containers to control their elements   .. meaning 

$("#c1 #img").hide();
 
I would like to make it automatically loops by a counter like this ( but this gets a code error ) 

$("#c"+counter1 "#img").hide();

counter=counter+1  --->( which I will include in the if statement ) 


Thanks :)