Stop first audio when user taps to play a different audio

I'm making an audio app with jQuery mobile which is compiled with phonegap build. The audio plays correctly as it should, but the problem is when an audio is playing and you tap on a new audio to play. The first audio doesn't stop but still continues to play with the second one too. I want to know how I could find a way to stop the first audio playing when a user taps on the second audio file.