Ok, see image:
As you can see the search bar is located within a div, I want it so that if the user clicks anything that isn't the search bar, the div's "display" property changes to 'block' from 'none'.
I understand the changing but I dont know how to add the "conditionals" in JavaScript, is this even possible when utilizing the elements and 'clicks'?
I'm not too familiar with this 'action' but is it possible to set up a listener? if click is located in div but not in area that search/input/form takes up on the page, -> do action?
or am I off completely?
>>7112558Im the jquery/JS person. Thanks for the advice, I rewrote most of the Jquery code in "pure" JS. Honestly I like it more. It's more to the point, compared to Jquery. So much syntax to learn. Seems very powerful tho.
>>7112961This is the first I've heard of that, pretty neat. I'll try and incorporate it in my page at some point in the future.