showing results for - "jquery determine empty value radio by name"
Constanza
29 Jan 2021
1  $("form").submit(function () {
2    var flag = true;
3    $(':radio').each(function () {
4        name = $(this).attr('name');
5        if (flag && !$(':radio[name="' + name + '"]:checked').length) {
6            alert(name + ' group not checked');
7            flag = false;
8        }
9    });
10    return flag;
11});