NullPointer NullPointer - 3 months ago 11
HTML Question

How to append HTML of a page to iframe using jquery

Now I have html codes of a page from back end like this.

enter image description here

So I wanna know how to append these to iframe using jquery or javascript.

<iframe id="t-frame" ></iframe>

Answer

Use it:

$("#t-frame").attr("src","link website");
Comments