Gallery items and actions

Hi guys,
I’d like to mark an item in a gallery as ‘selected’ in response to user click. For example - to change the selected item background once the user clicked it. Any idea how I should do it?

Thanks,
J.D.
#gallery #item #galleryitem #selected