0

この例を Jquery Mobile 1.3.2 で再現しようとしましたが、バージョン 1.2.1 以下でしか機能しません。

    $(document).on("pageinit", "#page1", function(){

        $("#checkFirst").click(function(){
            $("input[type='radio']:first").attr("checked", "checked");
            $("input[type='radio']").checkboxradio("refresh");
        });
        $("#checkSecond").click(function(){
            $("input[type='radio']:eq(1)").attr("checked", "checked");
            $("input[type='radio']").checkboxradio("refresh");
        });
        $("#checkLast").click(function(){
            $("input[type='radio']:last").attr("checked", "checked");
            $("input[type='radio']").checkboxradio("refresh");
        });
        $("#uncheckAll").click(function(){
            $("input[type='radio'][checked]").removeAttr("checked");
            $("input[type='radio']").checkboxradio("refresh");
        });
    });

この関数は、jqm > 1.2.1 の 1 つのラジオボタンに対して 1 回だけラジオボタンを再描画します。

これはjsfiddleにリンクしています:

1.2.1
で動作するバージョン 1.3.2 で動作しないバージョン

この例が他のバージョンで機能しない理由はありますか?

4

2 に答える 2