title: JW Player - Stop (target) Multiple Players with an Event Handler
body: <p>I have a click handler to fire the built in <code>jwplayer().stop();</code> functionality. However only my first handler executes and the other one fails (but no errors are logged).</p>
  
  <p>The videos are embedded into the element divs in the view.</p>
  
  <p>In another words: I can stop the first video but not the second, third and so on even though I'm able to log every subsequent click inside my <code>function()</code>.</p>
  
  <p>Thoughts?
  Thank you.</p>
  
  <pre><code>$(function(){
      console.log('ready');
      $('.stop').on('click',function stopVideo () {
         //stop JW player
          if (typeof(jwplayer) != 'undefined') {
                  console.log('video stopped');
                  jwplayer().stop();
  
              }         
      })
  });
  </code></pre>
  
  <p>view</p>
  
  <pre><code>&lt;body&gt;
  &lt;div class="container"&gt;
      &lt;!-- first video --&gt;
      &lt;div class="jw" style="width: 40%; margin: 10px auto"&gt;
          &lt;script src="//content.jwplatform.com/players/4sng2RGX-UQtQ90mG.js"&gt;&lt;/script&gt;
          &lt;button class="stop" style="padding: 8px 19px; float: right; margin: 10px"&gt;stop video&lt;/button&gt;
      &lt;/div&gt;
  
      &lt;!-- second video --&gt;
      &lt;div class="jw" style="width: 40%; margin: 10px auto"&gt;
          &lt;script src="//content.jwplatform.com/players/z5Jka98V-UQtQ90mG.js"&gt;&lt;/script&gt;
          &lt;button class="stop" style="padding: 8px 19px; float: right; margin: 10px"&gt;stop video&lt;/button&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>