我想在提交表单之前启用所有禁用的输入并选择元素,以便我可以获得所有禁用的元素值。
所以我尝试了
function enable() {
        $('input[type="text"], input[type="checkbox"], select').prop("disabled", true).each(function () {
            if ($(this).is(':disabled')) {
                $(this).attr('disabled', false);
            }
        });
    }
此代码不起作用,请您帮我完成这项工作。
提前致谢....