jplayer multiple mp3 file links in one page
问题 I use jplayer in my page and when clicked a link I want to play the clicked one. However every time test1.mp3 is played. How can I solve it? The code is below: the page is as follows if needed: http://www.dilyurdu.com/audio.htm function listen(mp3_index){ var mp3_file; mp3_file="test"+mp3_index+".mp3"; $("#jquery_jplayer_1").jPlayer({ ready: function(event) { $(this).jPlayer("setMedia", { mp3: mp3_file, }); }, swfPath: "http://www.jplayer.org/2.1.0/js", supplied: "mp3" }); } links are as