1

I have a page that loads a fancybox iframe dialog. In that dialog an ajax call can be made that returns a JS response. I want that response in the iFrame to remove an element on the parent window. Here's what I have so far:

$(parent.document + ' #attachment-<%[email protected]%>').fadeOut('slow');

This isn't working. Suggestions? thanks

AnApprentice
  • 108,152
  • 195
  • 629
  • 1,012

1 Answers1

0

In jquery you need a "#" or "." after the "$("

So for example $("#myDiv") or $(".MyDiv"). I'm guessing that is your problem.

RandomWebGuy
  • 1,439
  • 11
  • 23