How can I attach a click event handler to an element inside an iframe?
Here's what I tried and doesn't work:
$("#parent iframe").contents().find("a").live("click", function () {
alert ("test");
return false;
});
The iframe is on the same domain.