Id and class selector at once

Id and class selector at once

Hi, I am trying to make a sliding panel if you click a button, the only problem is that there are more of this panels on the page. I can make the first one open, but I cant make the one opening wich has the id=id...

The alert writes out the correct value, and its in the code only for debugging purposes.
The line after that is where the problem is... in my opinion.

<script type="text/javascript">
$(document).ready(function(){

    $(".btn-slide").click(function(){

var id = $(this).attr("id");
alert(id);
        $(".panel[id=id]").slideToggle("slow");
        $(this).toggleClass("active"); return false;
    });
   
     
});
</script>