$(document).ready(function () {
            if ($.cookie("rmbUser") == "true") {
                $("#ck_rmbUser").attr("checked", true);
                $("#txt_username").val($.cookie("username"));
                $("#txt_password").val($.cookie("password"));
            }
        });      
        function saveUserInfo() {
            if($('#ck_rmbUser').prop("checked") == true){     
                var str_username = $("#txt_username").val();
                var str_password = $("#txt_password").val();
                $.cookie("rmbUser", "true", { expires: 7 }); 
                $.cookie("username", str_username, { expires: 7 });
                $.cookie("password", str_password, { expires: 7 });
            }
            else {
                $.cookie("rmbUser", "false", { expire: -1 });
                $.cookie("username", "", { expires: -1 });
                $.cookie("password", "", { expires: -1 });
            }
        };
  怎么写 使选定复选框点击登录后 然后在刷新页面是用户名密码直接显示