Learn free online HTML5, javascript, and jquery Tutorials by Examples

Sunday, 6 January 2019

How To - Get Iframe Elements and write css using jquery

$('iframe').load( function() {
    $('iframe').contents().find("head")
      .append($("<style type='text/css'>  .my-class{display:none;}  </style>"));
});

No comments:

Post a Comment