0

以下代码$(this).children("div").children("input['type=radio']:checked在 jquery 1.12.4 JS 中不起作用,适用于 1.7.1

$(".highlightedRow").each(function () {
                if ($(this).children("div").children("input['type=radio']:checked").length == 0) {
                    $(this).css("background-color", "#F0AE3D");
                    flag = 1;
                }
                else {
                    $(this).css("background-color", "#99E599");
                }
            });

如果有人在升级 jquery 时遇到类似问题,请帮忙

4

0 回答 0