Código:
y este se ira incrementando: $(document).ready(function(){
var playerid = $("#topten_1");
var cancion = $("#rola_1").val();
playerid.jPlayer({
ready: function () {
$(this).jPlayer("setMedia", {
mp3: cancion
}).jPlayer("stop");
},
swfPath: "js",
supplied: "mp3",
cssSelectorAncestor: "#jp_interface_1"
})
.bind($.jPlayer.event.play, function() { // Using a jPlayer event to avoid both jPlayers playing together.
$(this).jPlayer("pauseOthers");
});
});
Código HTML:
<div id="topten_1" class="jp-jplayer" ></div>
Código:
pero no obtiene nada mi reproductor no funciona$(this).attr("id");
como puedo obtener el id? topten_1 o 2 o 3 etc.... de igual modo el #rola_1,2 3 4 5 y jp_interface_1 etc...
algo asi como se usa con javascriot normal:
Código Javascript:
Ver original
var obj = document.getElementById('item_' + id)


