How would I make jquery wrap an iframe in a div e.g if using a vimeo embed iframe, on load jquery wraps it in a div class:
<div class="iframe"><iframe src="http://player.vimeo.com/vi开发者_开发知识库deo/23358638?title=0&byline=0&portrait=0" width="500" height="300" frameborder="0"></iframe></div>
Use jQuery wrap()
function :
$("iframe").wrap("<div class='iframe'/>");
精彩评论