I am trying to figure out how to add controls to a video using jQuery.
I have tried the following but it did not work:
$('.video-js').attr('controls', 'controls');
Try this
$('.video-js').attr('controls',true);
Alternatively if you're using jQuery 1.6+ you may/should use
$(".video-js").prop("controls",true);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With