$(document).ready(function() {
$("#panel").hide();
var a = $("<a id='stats'>Stats</a>").attr('href','#').addClass("btn-slide");
$('#panel').before(a);
$(".btn-slide").click(function(){
if ($("#panel").is(":hidden")) {
$("#panel").slideDown("slow");
$(this).addClass("active");
$.cookie('showTop', 'collapsed');
return false;
} else {
$("#panel").slideUp("slow");
$(this).removeClass("active");
$.cookie('showTop', 'expanded');
return false;
}
});
// COOKIES
// Header State
var showTop = $.cookie('showTop');
// Set the user's selection for the Header State
if (showTop == 'collapsed') {
$("#panel").show();
$(".btn-slide").addClass("active");
};
});
i would like to know a) if it is possible to have multiple drop down list
This post has been edited by ghqwerty: 03 July 2009 - 01:47 AM

New Topic/Question
Reply



MultiQuote

|