How can I modify the poster attribute of a video element with JavaScript?
<video id="vid" poster="AB.png">
Sure it is:
document.getElementById("vid").setAttribute("poster","newValue");
With jQuery that would be:
jQuery("#vid").attr("poster","newValue");
And it is also a DOM property/id attribute:
document.getElementById("vid").poster = "newValue";
With jQuery that would be:
jQuery("#vid").prop("poster","newValue");