Linux Web Server Sound Clips With Jquery AI Bot Function

Go down

Linux Web Server Sound Clips With Jquery AI Bot Function Empty 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
jamied_uk
Admin

Posts : 2466
Join date : 2010-05-09
Age : 36
Location : UK

http://address-shortner.co.uk

Back to top Go down

Back to top


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