I have a slide up function on click, but once it is displayed i don't want it to slide up again once the user clicks on the link a second time, but I can't seem to get it to work.
According to answer iv'e read it was better to use .is hidden, but that doesn't seem to fix the problem.
$(document).ready(function() {
if ($('#aboutpage').is(":hidden")) {
$('.about').click(function() {
$(divPages).slideUp(1000);
$('#aboutpage').slideDown(1000);
});
}
});