I have a single page application that separates its pages by <section>
elements. Content is being outputted dynamically from the back end. How would I loop through the application using jQuery and see the data-index of a section that contains a div element of $('.narration_audio')
.
Basically what I'm trying to accomplish is when ever a user comes to the page (section) that contains that div element to show the audio player in the heading. Otherwise grey out the audio player.