title: JW Player seek on ready
body: <p>I have another JW Player question... I've implemented JW Player to replace an image at the top of the page on a button click. That code looks like this:</p>
  
  <pre><code>&lt;div class="series_graphic"&gt;&lt;/div&gt;
  &lt;button class="button-watch1"&gt;Watch now&lt;/button&gt;
  
  $( ".button-watch1" ).click(function() {
      $( ".series_graphic" ).replaceWith('&lt;div id="player-1"&gt;Loading&lt;/div&gt;');
      jwplayer("player-1").setup({
          file: "file",
          height: 360,
          image: "file.jpg",
          width: 640,
          autostart: true
      });
   });
  </code></pre>
  
  <p>I'm working on this for a church, and they would like the ability to watch the whole video and also the ability to jump to a certain portion of the video. I'm thinking I'll implement another button that says "Watch sermon" to accomplish this and use the seek command. I'm having issues implementing it since the player isn't yet loaded when the button is pressed. I assumed I could get it to work by using the onReady command, but I'm having issues making that work... I'm just learning JavaScript so it's all a bit fuzzy to me.</p>
  
  <p>The page is <a href="http://andrewanguiano.com/ee//lbc/series/pray-like-jesus#tab-1" rel="nofollow">here</a>. It's still very much in progress :D</p>
  
  <p>If anyone could walk me through it, I'd really appreciate it! Thanks!</p>