checked
$(document).ready(function(){ $("input[type='button']").on('click', function(){ var radioValue = $("input[name='gender']:checked").val(); if(radioValue){ alert(radioValue); } }); });