Answers for "jquery remove iframe by class"

CSS
2

change element in iframe

// so you got an iframe (id="myiframe"). In that page you have an element id="theprice" and you want to change its value
// from the parent page do this in your javascript:
var iframevar = document.getElementById('myiframe');
var elmnt = iframevar.contentWindow.document.getElementById("theprice");
elmnt.innerHTML = theNewPrice;
Posted by: Guest on July-10-2020
0

jquery edit iframe content

$(document).ready(function() {
    $('#prev').contents().find('body').html('<div> blah </div>');
});
Posted by: Guest on September-06-2020

Code answers related to "jquery remove iframe by class"

Browse Popular Code Answers by Language