Answer the question
In order to leave comments, you need to log in
How to add an attribute?
jQuery('video').attr("playsinline", "")
You need to add a playsinline attribute with no value to the video tag, so jQuery('video').attr("playsinline") doesn't. If with value then adds.
Answer the question
In order to leave comments, you need to log in
jQuery('video').attr("playsinline", "")
setTimeout(function() {
jQuery('video').attr("playsinline", "");
}, 2000);
$('video')[0].setAttribute("playsinline","");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question