I have a form that I need to only show certain options based on the selection of the radio buttons at the top. For some reason it is not working properly. Any ideas? Below is the jsfiddle. Please let me know if this needs further explanation, and thanks!
$('#choose-one').change(function () {
if ($('#choose-one:checked').val() == 'Sold') {
$('.resultDetail').hide();
$('.resultDetail.sold').show();
} else if ($('#choose-one:checked').val() == 'Not Demoed') {
$('.resultDetail').hide();
$('.resultDetail.notDemoed').show();
} else if ($('#choose-one:checked').val() == 'Not Sold') {
$('.resultDetail').hide();
$('.resultDetail.notSold').show();
}
});