Has something changed with the way collapsible lists are named. I was using the following code to store some data and now it doesn't work and on looking at the html for my page the naming of elements seems to have changed.
$butid = this.id;
$butid = $butid.substring(21);
$event = "rpgs_rpgcode" + $butid;
$event = $("#rpgs_rpgcode"+$butid).text();
localStorage.setItem('eventid', $event);
$name = "rpgs_rpgname" + $butid;
$name = $("#rpgs_rpgname"+$butid).text();
localStorage.setItem('eventname', $name);
To explain a collapsible list would be populated from a database. The expanded list would have various bits of information relevant to the list header. Item code, description etc.
When the "add to schedule" button was clicked the script would strip off the name as each record from the database would have its own button name eg rpgs_mobilebutton_29_0 for the first record and rpgs_mobilebutton_29_1 for the second.
Each data item was correspondingly named with the _0 _1 etc.. So to get the item code I just found the code with the correct suffix. Pulled the text and stored in localstorage. Then posted them to the database.
NOW: the suffix is missing , all the buttons are just rpgs_mobilebutton_29 so it fails.
Any ideas