0

I am loading a view using iframe.Now i wants to hide a div inside the iFrame using jQuery. But it shows $ is not defined.jQuery file is already included there.How can i do this?

<script type="text/javascript">
    $(function(){
        $("#wrap").hide();  
    });                     
</script>
Deepu
  • 11,587
  • 13
  • 55
  • 88
invention
  • 11
  • 3

1 Answers1

0

jQuery has some major issues with iframes. You'll have to include a script inside your iframe and go from there.

What are you trying to use as a trigger to hide the div?

If it's at all possible I would suggest not using iframes for your website. Iframes come in handy when you're trying to embed a youtube video or something.

Fyntasia
  • 1,103
  • 6
  • 19