Here's my senario...
My iframe has a bunch of clickable buttons with a class of .action-item
$(".action-item").bind("click", function() {
// do something
});
On the parent page I am targeting my iframe and removing the .action-item
class. I've confirmed using Chrome developer tools, that the items do have the removed class.
$("#bottom-iframe").contents().find(".action-item:visible").each(function() {
$(this).unbind('click');
$(this).removeClass("action-item");
});
But unfortunately, the clicks are still registered and work, even when I remove the class. Is there a solution or something I'm overlooking?