I have iframe
:
& lt; iframe src = "include_modal / index.html" id = "qwiz" allowTransparency = "True" & gt;
inside it is there is an event “close”, I want to do something like that of the IFrame’a itself:
$ (". close"). Click (function () {
$ ('# QWIZ'). CSS ('OPACITY', '0');
});
Answer 1
If you just want to make your iframe
invisible by clicking on the button:
$ (". Close-Button"). ON ("Click", function () {
$ ("# QWIZ"). CSS ("OPACITY", "0")
})
What to “close” block:
// Replace $ ("# QWIZ"). CSS ("Opacity", "0") on
$ ("# QWIZ"). Hide ()
To delete a block from DOM:
// Replace $ ("# QWIZ"). CSS ("Opacity", "0") on
$ ("# QWIZ"). Remove ()