I have 5 div classes (button1, button2, button3, button4, button5)
What I want is that all classes are not clickable onload (except button1) and then after button1 is clicked, button2 is active and the others are not and so on.
So a sequential click through of sorts.
HTML
<map name="Map" id="Map">
<area id="button" title="HAT" alt="HAT" href="#" shape="poly" coords="xxx,xxx" />
<area id="button2" title="SUN CREAM" alt="SUN CREAM" href="#" shape="poly" coords="xxx,xxx" />
</map>
I tried:
$(function(){ $("#button2").unbind("click"); });
as the initial function, and then under button1 click function:
$("#button1").click(function() {
$("#Map #button2").bind("click");
});
This works in that it doesnt allow button2 to be clicked, but even after clicking button1 it still cannot be clicked.
Any ideas?
buttonand on current button click event do$(this).next().bind("click");and for unbind all use$(".btn").unbind("click");- Parth Trivedi