internet explorer - Jquery empty function does not remove video stream in IE -


This is the function that I use to clear the div tag and start a new video stream. It works right in Firefox, Chrome, Safari and Opera, but not in IE. The video stream is not removed in IE and the next one is starting to play from the previous one. I think all other HTML elements are removed, but not the actual video.

  function playchannel (id) {$ ("# player"). Empty (); Request = $ .getJSON ("search.cfc", {method: 'playchannel', id: id, returnformat: 'json'}, function (data) {showplayer (data); viewCount (id);}); << code>   

Try it out:

  $ (" #player ") HTML (." ");    

Comments