I am using jplayer. When the mp3 finishes, I want to change the class name from “stop” to “play”. How can I do that in jplayer?
<div id="topid">
<a class="stop" onclick="play('test1.mp3');" href="javascript:;"></a>
</div>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the
$.jPlayer.event.endedevent. I mean, come on, read the docs.Usage example from the same link: