get ID

get ID

Hi.
am quite new to jQuery.
am trying to get the id of a button, hide a div with the same class name, and show a div with a different class but with the same number. example:

$("#info2").click(function () { //the id of the button clicked
$(.info2).hide();    // the class of the div  to hide
                                $(.edit2).show(); // the class of the div to show 
});
any ideas? i will greatly appreciate it