Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 14th, 2013  |  syntax: None  |  size: 0.23 KB  |  views: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var frame = $('#mainFrame'); // the iframe I am trying to access
  2. var link = $('a.btn', frame.contents()); // the element is found correctly
  3. link.trigger('click');  // nothing happens.
  4. var e = link.data('events');  // e is undefined.
clone this paste RAW Paste Data