Click element and change the text inside (with jquery)
<p>I use this function to load the div '.slide'.
I want to change the text inside open to close when clicking the div. I want to arrange this by Jquery. How is this done?</p>

<pre><code>$("#slideopen").click(function () {
    var slide = $(".slide");
    if (!slide.data("loaded")) {
        slide.load("/v3/ajax/timeline.php?id=&lt;?php echo $cam_id; ?&gt;");
        slide.data("loaded", true);
    }
    slide.slideToggle("slow");
});
</code></pre>
