Trying to figure this out, but currently stuck. I have tabbed sections generated in Coldfusion. The selected section is marked by a class named "tab_selected (+ the UUID created in coldfusion)", while unselected tabs have class names with "tab_unselected (+ the UUID created in coldfusion)". When you click on an unselected tab, it changes to "tab_selected (+ the UUID)" and adjusts the rest accordingly.
The goal is to use javascript to find the element with the "tab_selected" class when leaving the page, then set a cookie with that element's ID...
My attempted solution so far (using JQuery) may be totally off base. Seeking guidance.
$(window).unload( function () {
$("selector[name*='tab_selected_text']").cookie("TABS_REMEMBER", 1, { expires: null });
});