On this example how can I display the div with class is-dynamic
only if the div in the iframe contains this text "Keine Angebote zu «kaufen» gefunden"?
I have tried using this other suggestion here without any results.
Many thanks in advance!
On this example how can I display the div with class is-dynamic
only if the div in the iframe contains this text "Keine Angebote zu «kaufen» gefunden"?
I have tried using this other suggestion here without any results.
Many thanks in advance!
Use jQuery & code should be as below:
$(document).ready(function(){
var iframe = $('#frame-8be8f6c4-b1a0-8aaa-7011-ccfe2f33bf4b').text();
console.log(iframe);
if(iframe.includes('Keine Angebote zu «kaufen» gefunden')){
$('.is-dynamic').show();
} else {
$('.is-dynamic').hide();
}
});