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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -