Home › Forums › CSS › Infogrid – Hide when clicking outside the grid › Re: Infogrid – Hide when clicking outside the grid
February 27, 2013 at 3:53 pm #126357
Obviously you’ll need jQuery.
You could add a click function to the [body] that cycles through the divs with a class of ‘info-col’ and if one of them also has a class of cur-Col (if that’s applied) and remove it.
It would also need to reset the css changes made when the original div was clicked. Those will probably already been in the existing JS.
Unfortunately, jQ is still new to me so someone else will have to take over.
Might be an idea to put something in Codepen for us to play with.