Duleendra
Duleendra

Reputation: 497

Creating and loading multiple iframes dynamically

I want to add few ifamres to a page based on the search result from the database. Also I am planing to put those I frames inside a Jquery-UI accordion menu. What is the best way of doing this. I have used PHP for creating the ifamres dynamically.

Upvotes: 0

Views: 402

Answers (1)

Derek 朕會功夫
Derek 朕會功夫

Reputation: 94409

function searchResult(url){
    $("<iframe>").attr("src", url).appendTo("div#result");
}

searchResult("//www.example.com");

Upvotes: 1

Related Questions