Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

134
Views
How to write a function that turns off / on the sound from all videos in different places?

Only one button will be responsible for everything, all videos will be with the same class. I tried, but it only mutes the sound from one video.

<video class="inst-video">
       <source src="preview1.mp4" type="video/mp4" />
</video>
<video class="inst-video">
       <source src="preview2.mp4" type="video/mp4" />
</video>
<video class="inst-video">
       <source src="preview3.mp4" type="video/mp4" />
</video>

<button onclick="enableMute()" id="toggleActionMute">MUTE</button>
let vid = document.querySelector(".inst-video");
function enableMute() { 
  vid.muted = true;
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!