how to use jquery stop playing. #34
Answered
by
cifkao
gzshawnliang
asked this question in
Q&A
-
Hi,i am new to web dev.The html-midi-player work well in jquery,thanks for your job.But how to use jquery stop the html-midi-player playing? |
Beta Was this translation helpful? Give feedback.
Answered by
cifkao
Oct 21, 2021
Replies: 1 comment 1 reply
-
You just need to get the actual HTML element from your jQuery object and call |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gzshawnliang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You just need to get the actual HTML element from your jQuery object and call
stop()
on it directly. I guess something like$("#myPlayer")[0].stop()
will work. Or if your query matches multiple elements, loop over them witheach()
and callstop()
on each one.