Reply To: Add controls attribute to video element using jQuery

Home Forums Javascript Add controls attribute to video element using jQuery Reply To: Add controls attribute to video element using jQuery

#2706
Techy Online
Keymaster

$('.video-js').attr('controls',true);

Alternatively if you're using jQuery 1.6+ you may/should use

$(".video-js").prop("controls",true);

Best Answer

  • This reply was modified 4 years, 6 months ago by Techy Online.