I'm trying to have a jquery script add things onto a webpage. I can get pictures and text but I want there to be audio tags for songs.
$(this).find("song").each(function(){
$("#d" + n).append("<audio src='" + $(this).attr("url") + "' controls>
<embed src='" + $(this).attr("url") + "'
width="300"
height="90"
loop="false"
autostart="false" />
</audio><br>" );
});
When I try it this way I get Uncaught SyntaxError: Unexpected token ILLEGAL
The error says its on the 2nd line.
No comments:
Post a Comment