javascript new audio replace audio code example
Example: progrmatically change audio src
function updateSource(source, src) {
source = $(source);
source.attr("src", src).appendTo(source.parent());
}
function updateSource(source, src) {
source = $(source);
source.attr("src", src).appendTo(source.parent());
}