Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!


By: a guest on Feb 14th, 2013  |  syntax: None  |  size: 0.23 KB  |  views: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
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 ='events');  // e is undefined.
clone this paste RAW Paste Data