Say we have HTML structure like this:
<ul id="dropdown-download-links">
<li>
<a href="foo.html">Foo</a> <!-- Don't want this clickable, but cannot remove it -->
<ul>
<li><a href="bar.html">Bar</a></li>
<li><a href="baz.html">Baz</a></li>
</ul>
</li>
<li><!-- .. same style structure here .. --></li>
<li><!-- .. same style structure here .. --></li>
</ul>
So you click on Foo and then it toggles Bar and Baz both of which SHOULD be clickable as target=_blank pdf documents. The obvious problem is because of e.preventDefault() none of the links work as they should. The relevant jQuery is here:
$(document).ready(function() {
$("ul#dropdown-download-links > li > a").unbind().click(function(e) {
e.stopPropagation();
var ulContainer = $(this).closest("li").find("ul");
$(ulContainer).slideToggle();
});
});
Can anyone see a way in which the Bar and Baz links would work despite using e.preventDefault()? So that the original parents which were themselves supposed to be links act as clickable elements that unfold the new links?