This solution is simple, elegant and works in all browsers:
var video = $("#playerid").attr("src");
$("#playerid").attr("src","");
$("#playerid").attr("src",video);
More Related Contents:
- Listening for Youtube Event in JavaScript or jQuery
- How do I automatically play a Youtube video (IFrame API) muted?
- Twitter Bootstrap Modal stop Youtube video
- how to block website from loading in iframe?
- Embed HTML5 YouTube video without iframe?
- jQuery Youtube URL Validation with regex
- Youtube iframe api not triggering onYouTubeIframeAPIReady
- Replace url from youtube to embed code – Error: Permission denied to access property ‘toString’
- CSS or jQuery : How to get visible top [duplicate]
- Write tags in HTML and print
- Get this error: “Uncaught TypeError: Cannot read property ‘0’ of undefined”
- How can I determine the direction of a jQuery scroll event?
- Allow Google Chrome to use XMLHttpRequest to load a URL from a local file
- AngularJS – Any way for $http.post to send request parameters instead of JSON?
- How to detect window.print() finish
- Create array of unique objects by property
- Adding additional data to select options using jQuery
- HTML5 dragleave fired when hovering a child element
- Calculating Jday(Julian Day) in javascript
- Best way to detect Mac OS X or Windows computers with JavaScript or jQuery
- Synchronized scrolling using jQuery?
- jQuery: $().click(fn) vs. $().bind(‘click’,fn);
- Calling webpage JavaScript methods from browser extension
- Multiple Select limit number of selection
- With jQuery, how do I capitalize the first letter of a text field while the user is still editing that field?
- jQuery() not finding elements in jQuery.parseHTML() result
- window.open popup getting blocked during click event
- Cancel click event in the mouseup event handler
- Javascript: Easier way to format numbers? [closed]
- How to replace the entire html webpage with ajax response?