primarily, i\'m new for Jquery.
I have images like that . What i want is that when user click image,it makes image bordered. User can select a number of images. It
Easy enough, just add a new CSS class to the image on click.
...
...
I prefer this method to in-script style definitions for the sake of simply removing stylistic elements from functionality. Makes everything reusable and easy to change later if need be. Above code supports both applying the formatting and removing it on a secondary click. (IE: It will remove if it exists.)