Fix: formconfim if type radio must be :checked to get correct value

This commit is contained in:
Alexandre SPANGARO 2021-07-08 17:15:03 +02:00
parent 01e272fb8c
commit eaa6987e8b

View File

@ -4434,7 +4434,7 @@ class Form
var more = "";
var inputvalue;
if ($("input[name=\'" + inputname + "\']").attr("type") == "radio") {
inputvalue = $("input[name=\'" + inputname + "\']").val();
inputvalue = $("input[name=\'" + inputname + "\']:checked").val();
} else {
if ($("#" + inputname).attr("type") == "checkbox") { more = ":checked"; }
inputvalue = $("#" + inputname + more).val();