I'm trying to change the border color of an image using its id with jquery
( photo['id'] is passed in from a previous function )
the ids of the photos are of the form 'photo239839'

```
 $('#photo'+photo['id']+'').click(function(){  
       $('#photo'+photo['id']+'').css('border-color','#777');

    });

```

When I try to use this same code using its class it works,
but I can't use this method since there are multiple images on the same
page with the same class

```
$('img.flickr_photo').click(function() {
    $("this.flickr_photo").css('border-color','#777');
});

```