Guest User

Untitled

a guest
Nov 22nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <input hidden="" id="inp" type="text hidden" value="YES" />
  2.  
  3. <script type="text/javascript">
  4. function checkInputValue(){
  5. var files = { "YES": "audio/timbre.mp3", "NO": "audio/timbre2.mp3" };
  6. var sound = new Audio( files[ $('#inp').val() ] );
  7. sound.play();
  8. }
  9. checkInputValue();
  10. </script>
Add Comment
Please, Sign In to add comment