I am trying to get the value once the form is submitted by using submit() jquery function and also trying to alert the particular value but going in vain... here is my code
$('.saving_account .list-radio').click(function() {
$('.saving_account .selected_radio').removeClass('selected_radio');
$(this).toggleClass('selected_radio');
$('input[type="radio"]').prop("checked", false);
$(this).find('input[type="radio"]').prop("checked", true);
//submit action
$('form#target').submit(function() {
alert( $(this).find('input[type="radio"]').val());
});
// alert( $(this).find('input[type="radio"]').val());
});
jsfiddle url https://jsfiddle.net/y3axmsah/1/