I've got a page which has a drop-down list which works by when any of the elements on it are clicked runs JS that hides corresponding elements on the page.
I want to label these different instances, i.e. when clicking on FAQ there will be some global element that notes which instance the page is in. Trying localStorage.myvar isn't supported in IE it seems so I've been trying to find a simple workaround that doesn't involve cookies. (since I'm fairly new to HTML & JS)
I did try simply renaming a varible in JS using JQuery, but the variable isn't of a global scope as its inside an onclick function
Would it be a good idea to simply change some hidden HTML or CSS element as a label OR is this bad practice and should fine another solution? Thanks