change div content when click on link with jquery?
<p>I have a jplayer musicplayer with a playlist that works as it should and now I would like to be able to change the first myPlaylist1 to myPlaylist2 when click on a link.</p>

<p>The function that loads the first playlist- myPlaylist1 into the div #theplayer looks like this.</p>

<pre><code>$(document).ready(function(){
    var description = 'Some description. ';

    $('#theplayer').ttwMusicPlayer(myPlaylist1, {
        autoPlay:false, 
        description:description,
        currencySymbol:'Kr ',
        buyText:'K&amp;Ouml;P',
        tracksToShow:50,
        jPlayer:{
            swfPath:'http://www.mypage.com/music_player/jquery-jplayer' //You need to override the default swf path any time the directory structure changes
        }
    });
</code></pre>

<p>When I click on a link I would like to change the above to myPlaylist2 below:</p>

<pre><code>    $('#theplayer').ttwMusicPlayer(myPlaylist2, {
        autoPlay:false, 
        description:description,
        currencySymbol:'Kr ',
        buyText:'K&amp;Ouml;P',
        tracksToShow:50, 
        jPlayer:{
            swfPath:'http://www.mypage.com/music_player/jquery-jplayer' //You need to override the default swf path any time the directory structure changes
        }
    });
</code></pre>

<p>And with this I hope that playlist2 will be displayed instead of playlist1?</p>

<p>The playlists that loads when the page loads looks like this:</p>

<pre><code>var myPlaylist1 = [
    {
        mp3:'http://www.www.mypage.com/music_player/mix/1.mp3',
        title:'Love The Way You Lie',
        artist:'Eminem',
        buy:'#',
        price:'12',
        cover:'http://www.mypage.com/music_player/images/1.jpg'
     }  
];
</code></pre>

<p>And when click on the link I like to change the playlist to this instead.</p>

<pre><code>    var myPlaylist2 = [
        {
            mp3:'http://www.www.mypage.com/music_player/mix/2.mp3',
            title:'Hey you',
            artist:'Madonna',
            buy:'#',
            price:'12',
            cover:'http://www.mypage.com/music_player/images/2.jpg'
         }  


];
</code></pre>

<p>Or if you have any other suggestion on how to change the playlists? </p>

<p>Any input really appreciated, thanks!</p>
