Home › Forums › Javascript › Add controls attribute to video element using jQuery › Reply To: Add controls attribute to video element using jQuery
April 11, 2020 at 6:40 am
#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.