For some reason this doesn't always work in safari and functions even less on the iPad, any guesses? =(
$(".dropdown .sub").click(function () {
$("#menu .holder").toggle();
});
For some reason this doesn't always work in safari and functions even less on the iPad, any guesses? =(
$(".dropdown .sub").click(function () {
$("#menu .holder").toggle();
});
After looking at the web page provided It appears that the toggle selector has many children. Something like this:
<div id="menu" class="dropdown">
<ul>
<li class="level1">
<a class="sub" href="#"><strong>TV & Video</strong></a>
<div class="holder">HOLDER</div>
</li>
<li class="level1">
<a class="sub" href="#"><strong>TV & Video</strong></a>
<div class="holder">HOLDER</div>
</li>
</ul>
</div>
This will not work:
$(".dropdown .sub").click(function () {
$("#menu .holder").toggle();
});
You will need to find the first sibling element.
$(".dropdown .sub").click(function () {
$(this).siblings(".holder").eq(0).toggle();
});
Find a jsfiddle of this here ->http://jsfiddle.net/rCN9n/5/