Hey, this is not a code writing community, please, try to do something yourself, we can help you if you fail. Thats how you learn
– VladislavChudakJul 07 '20 at 20:09
1 Answers1
1
To answer this in simplest form:
Have each image and it's description inside a DIV with a specific class, say "imageBox"
Assign an ID to each of these DIVs
In your stylesheet create a class, say "borderForImageBox" that will have the border to be shown for the selected item
Write a code to capture .click on all DIVs with class "imageBox", where first you will remove class "borderForImageBox" from all DIVs with class "imageBox", and then add class "borderForImageBox" only to the DIV clicked using $(this). Also, append $(this) DIV with the checkbox image