I am working on a site with dynamically generated jquery tabs. Each tab has an identifier.
For my script, I need to know how many times the user has visited the tab.
To record the number of clicks that I thought of creating an array as follows:
var i = new Array(my_tab_id);
(...)
i[my_tab_id] = 0;
Where my_tab_id changes dynamically depending on the tab we are in. Unfortunately, it does not look like the value of my_tab_id has been translated into an array. I donβt have me [5] = 0, I [6] = 0, etc., But rather I [my_tab_id], which is nothing more than just var.
Any tips? Thank!
user347284
source
share