如何使以下脚本移动兼容?

时间:2018-04-20 18:21:48

标签: javascript jquery frontend

点击按钮

更改单选按钮的值
$(document).ready(function () {
        $(document).on('click', '#btnAppID', function () {
            $('input:radio[name="el18749690"]').each(function () {
                $(this).attr('checked', false);
                $(this).prop('checked', false);
            });
            $('input:radio[name="el18749690"]:first').attr('checked', true);
            $('input:radio[name="el18749690"]:first').prop('checked', true);

        });
}); 

0 个答案:

没有答案