jquery - How can I keep the image highlighted upon click, even after browser refresh? -


basically, have 3 images: tried assign 'focus' them create border around image upon click. however, want following - if possible - happen:

  1. every image click stays highlighted, , when refresh browser clicked ones stay highlighted.

or

  1. clicked image stay highlighed after browser has refreshed.

a:focus img  {    border:1px solid #f00;  }
<a href="#"><img src="http://cdn.s7.disneystore.com/is/image/disneyshopping/1344039601602?$yetidetail$" alt=""  /></a>  <a href="#"><img src="http://cdn.s7.disneystore.com/is/image/disneyshopping/1344039601602?$yetidetail$" alt=""  /></a>  <a href="#"><img src="http://cdn.s7.disneystore.com/is/image/disneyshopping/1344039601602?$yetidetail$" alt=""  /></a>

any appreciated.

have tried "visited" selector?

a:visited img, image:visited {   # awesome styling right here! } 

Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -