Radio Button

Radio Button

I am trying to make an if statement that says, if this radio button is clicked.... Then set this radio and another radio to checked.  Please help.

  1. if( $('input[name=selector]').click(function() {
        $('input[name=selector]').attr('checked', 'checked')
        });
          {
        $('input[name=ph]').attr('checked', 'checked');
        }