How can i have an area map in a div with click event??
Hello,
in my code i click on a <div> section and another <div> section moves.
My code is as follows
- [code] $("#div1").click(function() {
$(this).next().animate({"left": "-800px"},1000);
});
When someone clicks on div1, next sibling (div2) moves left.
I would like to add an area map on div1, but how can i do that since when i click on it, the div2 moves??
In my code, when i first click on div1 the div2 shall move left, and when i click again in div1 the area map shall work.
How can i do that??
thanks, in advance