remove() and hide() only work for the items of first dynamically created collapsible
Hello friends,
I'm creating a mobile multi-page with dynamic content. When the page is loaded, the groups (blue collapsibles in below picture) are loaded from a database with an ajax-request. Then when a collapsible is clicked and expanded, the content of that specific group is loaded with ajax-request. And when the X-button is pressed, that list item is deleted with an ajax-request + remove().
The problem I'm facing is that remove() and hide() only work with the items in the first collapsible-group (Prez) and not the second group (Tuesday). I select each item by its id:
$("#item_"+row_id).remove();
Please advise..