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>
웃웃웃웃웃
  • 11,829
  • 15
  • 59
  • 91

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,133
  • 6
  • 19