jQuery youtubin plugin only working with a selector
I'm using [youtubin][1] to embed youtube videos on a secure page.  It works whenever I specify a jQuery selector:

    <script>
    $(function() {
      $('#foo a').youtubin();
    });
    </script>
    
    <div id="foo">
      <a href="http://www.youtube.com/v/kUini08olkQ&amp;hl=en_US&amp;fs=1">YouTube Video</a>
    </div>

It doesn't work when I just call youtubin:

    <script>
    $(function() {
      $.youtubin();
    });
    </script>
    
    <div id="foo">
      <a href="http://www.youtube.com/v/kUini08olkQ&amp;hl=en_US&amp;fs=1">YouTube Video</a>
    </div>

I'm using jQuery 1.3.2, swfobject 2.2, and youtubin 1.2.  Any thoughts on why it only works with a selector?  Thanks


  [1]: http://jonraasch.com/blog/youtubin-jquery-plugin "youtubin"
jQuery youtubin plugin only working with a selector
===

I'm using [youtubin][1] to embed youtube videos on a secure page.  It works whenever I specify a jQuery selector:

    <script>
    $(function() {
      $('#foo a').youtubin();
    });
    </script>
    
    <div id="foo">
      <a href="http://www.youtube.com/v/kUini08olkQ&amp;hl=en_US&amp;fs=1">YouTube Video</a>
    </div>

It doesn't work when I just call youtubin:

    <script>
    $(function() {
      $.youtubin();
    });
    </script>
    
    <div id="foo">
      <a href="http://www.youtube.com/v/kUini08olkQ&amp;hl=en_US&amp;fs=1">YouTube Video</a>
    </div>

I'm using jQuery 1.3.2, swfobject 2.2, and youtubin 1.2.  Any thoughts on why it only works with a selector?  Thanks


  [1]: http://jonraasch.com/blog/youtubin-jquery-plugin "youtubin"