test if radio button is clicked code example
Example: check if radio button is checked
$('#element').click(function() {
if($('#radio_button').is(':checked')) { alert("it's checked"); }
});
$('#element').click(function() {
if($('#radio_button').is(':checked')) { alert("it's checked"); }
});