The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Using jQuery to stop audio Re: Using jQuery to stop audio


Something like this?:

When you click play add a class like “playing” to that audio cue, then if you click play again somewhere search for all the cues that have the class “playing” and pauze or stop it. Then remove the class “playing” from that cue and add it to the new cue.