I have a form :
<form ....>
<input type="file" name="file-main" id="file-main" class="inputfile inputfile-3" multiple/>
<audio preload="none" src="">
// skipping submission buttons for brevity
</form>
When a user selects a an audio file from the browser, I want to make the selected audio playable in the form so that the user knows what he has selected (before the form is sent to the server). I am new to JS, HTML5, Ajax and Jquery so I'm struggling with these. How do I do it the shortest possible way?