Linux Web Server Sound Clips With Jquery AI Bot Function

View previous topic View next topic Go down

Linux Web Server Sound Clips With Jquery AI Bot Function

Post by jamied_uk on 3rd May 2016, 00:57

Code:
JQUERY

var sound = $('#sound')[0]; 
$(document).on('submit', '#sample', function()  {    
    sound.play();   
    return false;   
});
$('#start').on('click', function() {
    $('#sound').get(0).play();
});


HTML

<audio id="sound" src="sound.mp3" type="audio/mp3"></audio>   
<input type="button" value="Start" id="start" />

jamied_uk
Admin

Posts : 1981
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum