It worked fine before adding the if/else statement so I’m a little confused on what happen. I’m just trying to get it to just fade out and fade in the new content when it is clicked if the #projectpanel is displayed.. any ideas on why this isnt working?
Also having problems with the close button if any1 can point out what I’m doing wrong with that since its not doing anything at all
The closebutton does not work because the class names do not match, and you need to add
live()$("#projectpanel").slideUp(500).hide;is missing:
$("#projectpanel").slideUp(500).hide();http://jsfiddle.net/4SbXV/8/
Edit: fiddle updated