td-em-uma-function
http://pt.stackoverflow.com/questions/22923/td-em-uma-function
by Riderman Sousa
HTML
<script src="https://dl.dropboxusercontent.com/u/951647/jquery.buildr.js"></script>
<div></div>
CSS
http://jsfiddle.net/Ridermansb/Hym5Z/#username
JavaScript
var iFrames = [{
width: "560",
height: "315",
src: "//www.youtube.com/embed/rj6OLq9W6RE",
frameborder: 0,
allowfullscreen: true
}];
$div = $("div");
function Retorno() {
$div.build(function (b) {
b.table(function () {
b.each(iFrames, function (idx, it) {
b.tr(
b.td(
b.iframe({
width: it.width,
height: it.height,
src: it.src,
frameborder: it.frameborder,
allowfullscreen: it.allowfullscreen
})));
});
});
});
}
Retorno();