if radio button checked display div #something else display nothing if un checked

if radio button checked display div #something else display nothing if un checked

if radio button checked display div #something else display nothing if un checked

currently I have this and it works but when I click another radio option the div that was activated before stays there. Want a div to show only if certain radio button is checked and if not checked to hide.


$(function(){
           
           
            $('#offer_2').click(function(){
               
                $('#total2').show();
               
               
                });
           
           
            });