function CheckedRadioboxValue(name) { arr = $('input[name="'+name+'"]'); i = 0; val = ''; $('input[name="'+name+'"]').each(function(){ if(arr[i].checked){ val = $(this).val(); } i++; }); return val; }