I have a html with two iframes that change with a selector.
I would like to add an onclick event that triggers an url for some <rect>
elements within the iframes.
I read the post jquery select iframe children and I think the solution has to be quite similar.
However I am quite inexperienced in jquery and haven't been able to find it myself.
My trials so far have been the following:
$("#frame").content().("rect").click(function() {
window.alert("sometext");
});
$("frame").content().("rect").click(function() {
window.alert("sometext");
});
$("#frame").content().$("rect").click(function() {
window.alert("sometext");
});