I have a jquery slider that I have built, basically just three pannels that slide by applying negative left CSS values. Works great, but I have a youtube video in one slide that wont stop when I slide. I've tried display:none and Visibility:hidden which works in all but IE, the audio keeps going in IE.
Is there an easy way to kill a video with jquery?
This solution is simple, elegant and works in all browsers:
var video = $("#playerid").attr("src"); $("#playerid").attr("src",""); $("#playerid").attr("src",video);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With