I have tried with the following factors for setting the src attribute for my html5 video player in i.e.,
$("#vid").attr("src","video.mp4");
$("#vid").setAttribute("src","video.mp4");
$("#vid").prop("src","video.mp4");
i have searched in many forums that attr()
is not working in ie browser and they are giving alternate solution as
use val()
function for setting the value for the particular tag.
use $("#div").id = "value"
for some of the attribute like id
,class
and some events
like click
.
But i could not find the solution for changing the src
of the particular video
or image
. please help me to resolve this problem