Вам необходимо добавить прослушиватель событий для радиогруппы, а затем получить значение отмеченной опции.Кроме того, вы, вероятно, захотите запустить его один раз при загрузке страницы, что и делает .change()
в последней строке.
//run this anytime a radio input changes
$('input[name="gender"]').on('change', function() {
//get the currently selected value
let test = $('input[name="gender"]:checked').val();
//check the current value
if (test == 'home') {
$(".title").hide();
} else {
$(".title").show();
}
}).change(); //trigger this on page load
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>
<div role="radiogroup">
<input type="radio" name="gender" value="home" checked> Male
<br>
<input type="radio" name="gender" value="female"> Female
<br>
<input type="radio" name="gender" value="other"> Other
<br />
<br />
<div class='title'>
This is the title not on home value
</div>
</div>