jquery - Javascript: how to use multiple play buttons in audio player -


So I use the two play buttons in my audio Trying> Player, this is because I have an audio player and other sidebar for example.

Adheres to my JSField:

Can anyone help?

Inspection: I am using html5 audio and jquery / js on my player

You are using the same ID twice twice. ID must be are unique and it works fine and since you are using jQuery, you can use it Can:

  window.player = $ ('# player') [0]; $ ('#pilpaus, #PlayPoZ2'). Click (function (if player is paused) {player.play (); this.innerHTML = 'pause';} and {player.pause (); this.innerHTMLHTML = 'play';}} )  


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -