I want to replace a div container with jQuery onclick on a button, but I don't know how to do this. I tried this:
jQuery(document).click(function() {
("#dynamic").load("single.php #partial_index");
});
But how do I replace it? Now it won't show up if I click on it (it does nothing), but that's normal I guess because I don't state replacing the div. Is there any change I can get this work?
I want to replace a div with an ID called test if I click on the button dynamic. I want it to be replaced by single.php #partial_index. The button does nothing now.