title: Add a class to a button if aria-valuenow = 0
body: <p>I'm trying to find a way to add a class <code>testing</code> to a button if the input has a <code>aria-valuenow</code> is 0.</p>
  
  <p>My code so far:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>(function() {
    if($('.plyr__volume input').attr('aria-valuenow')=="0"){
      $('.js-volume').addClass('test');
    } else {
      $('.js-volume').removeClass('test');
    }
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;button type="button" class="plyr__control js-volume" data-plyr="mute"&gt;&lt;/button&gt;
    &lt;div class="plyr__volume"&gt;
    &lt;input data-plyr="volume" type="range" min="0" max="1" step="0.05" value="1" 
    autocomplete="off" role="slider" aria-label="Volume" aria-valuemin="0"
    aria-valuemax="100" aria-valuenow="0" id="plyr-volume-2587" style="--value:0%; 
    width: 0px; left: 200px;" aria-valuetext="0.0%" class="plyr__tab-focus"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>