I got a button which, when it is being clicked, loades with ajax some content from another "randomstuff.php" file. The button should be able to take this "randomstuff.php" file away again without refreshing the page. My thought was to use .toggle some where in this equation but I do not know where and how :/
$(document).ready(function() {
$("#savedButtonBox").click(function () {
$("#content").load('moduleSavedStyles/moduleSavedStyles.php');
});
});
With this method it loads the content into the original (index.php) website but now I want to toggle it so it gets taken away again. I need some help! :) Thanks in advance!