Toggle Beginner question
Toggle Beginner question
Hey,
I have a toggle beginner question:
I ve already found toggle examples like these:
$('.opener').click(function() {
$('.sub-menu').slideToggle('fast');
return false;
});
but these only work with fake links (#) like:
<ul>
<li><a href="#" class="opener">Open </a></li>
<ul class="submenu">
<li>hidden item 1</li>
<li>hidden item 2</li>
<li>hidden item 3</li>
</ul>
</ul>
if I insert a real link like "
https://mydomain/example.html" this stops working
<ul>
<li><a href="
https://mydomain/example.html" class="opener">Open</a></li>
<ul class="submenu">
<li>hidden item 1</li>
<li>hidden item 2</li>
<li>hidden item 3</li>
</ul>
</ul>
Can you help me out?
Thanks