I\'ve got a div#items and if it\'s clicked then div#choices slideDown(). If it\'s clicked again then div#choices should slideUp(); How can I test if choices is down or up al
Try this -
HTML:
Show
JQUERY SCRIPT:
$('.nav-toggle').click(function(){
var content_id = $(this).attr('href');
var toggle_switch = $(this);
$(content_id).toggle(function(){
if($(this).css('display')=='none'){
toggle_switch.html('Show');
}else{
toggle_switch.html('Hide');
}
});
});