Wordpress video end function
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://wordpress.stackexchange.com/questions/2895/not-defined-using-jquery-in-wordpress">$ not defined using jQuery in Wordpress</a>  </p>
</blockquote>



<p>I need to trigger a alert box when video ends</p>

<p>THis is the code i got from google</p>

<pre><code>&lt;script&gt;
$("iframe[src^='http://www.youtube.com']").bind("ended", function() {
alert("I'm done!");
 });
&lt;/script&gt;
</code></pre>

<p>I am just using the oembed function of wordpress to play youtube videos </p>

<p>I dont now why there are not working </p>
