Getting audio src atribute with JQuery -


i want access src atribute of mp3 file inside second "section" element. how do jquery?

<html> <body> <div id="slides">     <section>         <h3 class="audio"><audio src="file.mp3" /></h3>     </section>     <section>         <h3 class="audio"><audio src="otherfile.mp3" /></h3>     </section>     <section>         <h3 class="audio"><audio src="audio.mp3" /></h3>     </section> </div> </body> </html> 

jquery api

i think should of you. :)

the code jquery('audio:eq(1)').attr('src');


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -