title: how to sync jplayer playlist jquery
body: <p>On my music page When I click on music it will open into another window after that jplayer is working fine on that window but I also want to control jplayer from my music page(first page).</p>
  
  <pre><code>(document).ready(function(){
  
    //var getMusic = $.cookie('getCMusic');
    var getMusic = &lt;?php echo $get_music_by_cookie ?&gt;;
  
    var myPlaylist =  new jPlayerPlaylist({
        jPlayer: "#jquery_jplayer_1",
        cssSelectorAncestor: "#jp_container_1"
      },getMusic, {
        playlistOptions: {
          enableRemoveControls: true,
          autoPlay: true 
        },
        swfPath: "../../dist/jplayer",
        supplied: "webmv, ogv, m4v, oga, mp3",
        useStateClassSkin: true,
        autoBlur: false,
        smoothPlayBar: true,
        keyEnabled: true,
        audioFullScreen: true,
      });
     });
  </code></pre>
  
  <p>Here is my code ofplay list.
  this code is common in both window.</p>
  
  <p>Html code on my music page is : </p>
  
  <pre><code>&lt;button class="play"&gt;play&lt;/button&gt;
   &lt;button class="stop"&gt;stop&lt;/button&gt;
   &lt;button class="previous"&gt;previous&lt;/button&gt;
   &lt;button class="next"&gt;next&lt;/button&gt;
  </code></pre>
  
  <p>Here is my Site: <a href="http://www.thathrowdown.com/bespoke/public/#/music" rel="nofollow">http://www.thathrowdown.com/bespoke/public/#/music</a> </p>