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;
});
Thanks.
Edit: the iframe is on the same domain.