Change HTML of an iFrame with jQuery?

前端 未结 4 2154
无人及你
无人及你 2020-11-29 06:24

Is there a way to manipulate the HTML of an iframe that is from the same domain using jQuery?

Thanks for the help.

4条回答
  •  余生分开走
    2020-11-29 07:03

    You can use contents() to manipulate the contents of the iframe.

    $("#frameDemo").contents().find("div").html("new HTML content goes here");
    

提交回复
热议问题