<img class="images">
<img class="images">
<img class="images">

$(function(){
        $("img.images").click(function(){
                $("img.images").css({border:'none'});
                $(this).css({border:'1px solid #f00'});
        });
});



runrunforest wrote:
Hi,

I have 3 image, in turn called img1, img2, img3.

I need a code snippet that will add a border to the image when it is
clicked, and if I click the other image, the border will disappear,
the newly clicked image will have a border.

For short, only image has border at a time and only the image that got
click last will have border. Can you show me the technique to do this

Reply via email to