jquery script not closing the «openedElem» when a child of the «openElem» is clicked?
<p>I'm trying to have this jquery script not closing the «openedElem» when a child of the «openedElem» is clicked? My goal is to insert an ajax form into one of the sliding panel. Any suggestions?</p>

<pre><code>&lt;code&gt;
$(function(){
    var openedElem = null;
    $("a.click").click(function(){
        var nextElem = $(this).next();

        if (openedElem !== null) {
            if (openedElem.attr("id") === nextElem.attr("id")) {
                return false;
            }
            openedElem.slideUp();
        }

        openedElem = nextElem.slideDown();
    });
});
&lt;/code&gt;
</code></pre>
