changing display for multiple divs
Hi I am trying to change the display property to block when link is clicked and back to none when clicked outside of the div. It workd perfect with one div. The problem is that I need it to work for 5 divs. I appreciate any help anyone can offer.
var target = (e && e.target) || (event && event.srcElement);
var obj = document.getElementById('contactMenu');
var obj2 = document.getElementById('contact');
I would like to perform the same tasks on the same page for other divs and triggers such as 'property' and 'propertyMenu', 'map' and 'mapMenu' etc.
Thanks for your help
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread