Created
March 26, 2025 08:15
-
-
Save joceqo/70e56bb68a64eed0edded3f6f42df567 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const sessionStorageData = JSON.parse(sessionStorage.getItem("indexSelectedFilters")) || []; | |
| for (let i = 0; i < sessionStorageData.length; i++){ | |
| const value = sessionStorageData[i]; | |
| const checkbox = document.querySelector(`#${value}`); | |
| if (checkbox) { | |
| checkbox.checked = true; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment