title: jQuery cookie - audio
body: <p>Wrote a working code to enable / disable the sound, but do not know how to write to him cookie. </p>
  
  <p>Please help me.</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div class="uk-icon-volume-up" id="js_playerMuted"&gt;&lt;/div&gt;
  &lt;audio id="player" src="audio/thai.mp3" autoplay loop&gt;&lt;/audio&gt;
  </code></pre>
  
  <p><strong>jQuery</strong> </p>
  
  <pre><code>var audio = $('#player')[0];
  audio.volume = 0.05;
  
  $('#js_playerMuted').toggle(function(){
      $('#player')[0].pause();
      $('#js_playerMuted').css({'color': '#9D9A9A'});
      },
      function() {
      $('#player')[0].play();
      $('#js_playerMuted').css({'color': '#fff'});
  }); 
  </code></pre>