How to clear if there is no result
<p>I have a map. Whenever I click to state it pulls up the distributors and shows up.
However, if there is no result from the database it leaves the previous one on the page. 
What I want is if there is no result for that particular state I would like it to make container empty. How can I do it?</p>

<pre><code>$(document).ready(function() {
    $("#SC").click(function() {
        if ($("div.SC_info").is(":hidden")) {
            $("#repinfo_container div.info_cont").removeClass("active");
            $("#repinfo_container div.info_cont").addClass("inactive");
            $("div.SC_info").slideDown("fast");
            $("div.SC_info").removeClass("inactive");
            $("div.SC_info").addClass("active");
            $("div.inactive").slideUp("fast");
        } else {}
    });
});​
</code></pre>

<p>Some more details 
Look to this picture. <a href="http://i.imgur.com/vozKp.png" rel="nofollow">http://i.imgur.com/vozKp.png</a> This is an interactive distribution map. The problem is for example in the database I have results(distributors) for CA(California). When I click it pulls up and shows at the bottom. However, if I click LA(state) since there is no result it shows the previous clicked state's results. What I want is if I don't have any results for this    state I want it to show that container instead of showing the previous result. I hope now it makes more sense. </p>

<p>Here is the source code of the whole page</p>

<p>pastebin.com/mxyDpZCx</p>
