我需要在临时变量中存储一些元素,所以当我回到那个 pahe 时,我可以在页面加载时显示它们
我有关于8 li element但让我点击5 li,所以我想在5 li某处存储 id
$("#divPopup").on("click", "li", function () {
            ...
                var newId = $this.attr('Id').replace("Left", "Right")
                // here i want to store newID, each time user click on event, it should be unique values  , i want to store in $('#hdnValueProjectBtn').val(newId);
            }
            else {
                var newId = $this.attr('Id').replace("Left", "Right")
                $('#' + newId).hide();
            }
        });