The object doesn't support... on IE

The object doesn't support... on IE

Hello,

I'm creating and adapting a basic script that will display thumbnails of selected videos from YouTube (I'm using this plugin).


  1. $(document).ready(function() {   
  2.       url = $('.videoDiv p:first').text();  

  3.       var vd = $.jYoutube(url);        /* return the thumbnail URL */



  4.       $('.videoDiv').append('<a href="'+ url +'"><img src="background.png" id="img"/></a>');    

  5.       $('#img').css('background', 'url('+ vd +')');
  6. });

The problem is that the line 03 return on IE: Object doesn't support this property or method.

Previously, I had one with event.PreventDefault problem, but I solved that with this tip.



In this case, what should I do?