title: Play audio when hidden input change value
body: <p>I need to play an audio file when the hidden input field changes value. 
  This hidden input is in the <code>&lt;table&gt;</code> which is refreshed by Ajax to update the values. </p>
  
  <p>What I need to do is, (for example) when the value turns to Yes the <code>Clap.wav</code> needs to play, otherwise, when the value turns to No<code>boo.wav</code> must play.</p>
  
  <p>Anyone can give me a sample code for this or an idea? 
  Thank you for those who are willing to help. </p>
  
  <p>Here are some of my codes</p>
  
  <p>This is the hidden input field code. It is located on table with the id of <code>connExcel</code> on  platinum.php</p>
  
  <pre><code>&lt;input type="hidden" name="indVal" id="indVal" value=" &lt;?php echo $objWorksheet-&gt;getCellByColumnAndRow(5, 5)-&gt;getOldCalculatedValue();  ?&gt; "&gt;
  </code></pre>
  
  <p>And here are some of my Ajax codes  </p>
  
  <pre><code>xmlHttp.onreadystatechange=function(){ 
      if(xmlHttp.readyState==4){ 
      document.getElementById('connExcel').innerHTML=xmlHttp.responseText;
          setTimeout('AutoRefresh()',100); // JavaScript function calls AutoRefresh() every 3 seconds
      }
  }
  xmlHttp.open("GET","&lt;?php if( isset( $isAdmin ) &amp;&amp;  $isAdmin == TRUE ){ echo  '../../library/tosloader.php?page='. $pageID; } else {  echo  ../library/tosloader.php?page='. $pageID; }  ?&gt;",true);
  </code></pre>
  
  <p>the 'tosloader.php' just including the platinum.php to refresh the table.</p>