I'm using a jQuery/JavaScript bundle called jPlayer to make a playlist for my music blog. The player is at the top of the screen, and I want to be able to let the user click the name of the song at the top and redirect them to the post that it corresponds to.
The jPlayer that I include is written in shorthand, so viewing the js file is not helpful. The element that I need is a link of class .jp-playlist-item.jp-playlist-current
. I have asked about this before and the person said to try this, but it didn't work...
$("a.jp-playlist-item").each(function() {
$(this).replaceWith($(this).clone())
})
$("a.jp-playlist-item").click(function(){
alert(1);
})
The site I'm working on is http://www.startingtofeelit.com so you can get a better idea of what I mean.