I have a slide down menu that uses the following jquery.
$(document).ready(function() {
// Expand Panel
$("#open").click(function(){
$("div#panel").slideDown("slow");
});
// Collapse Panel
$("#close").click(function(){
$("div#panel").slideUp("slow");
});
// Switch buttons from "Log In | Register" to "Close Panel" on click
$("#toggle a").click(function () {
$("#toggle a").toggle();
});
});
I have a tab at the top.
<!-- The tab on top -->
<div class="tab">
<ul class="login">
<li class="left"> </li>
<li><a href="http://allbuys.ca">AllBuys.ca</a></li>
<li class="sep">|</li>
<li id="toggle">
<a href="#" name="open" class="open" id="open">Pick Your City</a>
<a id="close" style="display: none;" class="close" href="#">Close Panel</a>
</li>
<li class="right"> </li>
</ul>
</div> <!-- / top -->
I can't figure out how to make a text link that does the same function as Pick Your City
Any ideas?