How to get dynamic value from html tag with foreach and save it to jquery variable for momentObj

Honestly i am not sure how to make a suitable title for this but basically i was trying to extract element from span tag with id=duration which comes dynamically from database with foreach, and use it …