Append a .css file to an iframe so styles can be overrided
- by Toni Michel Caubet
i am trying like this:
$(document).ready(function(){
$('#muestraMotor').bind('mousedown',function(){
var cssLink = document.createElement("link");
cssLink.href = "../estilo/css/datepicker.css"; cssLink .rel = "stylesheet";
cssLink .type = "text/css";
frames['cboxIframe'].document.body.appendChild(cssLink);
});
})
where cboxIframe is the id of the iframe,
Firebug jumps:
frames.cboxIframe is undefined
[Detener en este error] frames['cboxIframe'].document.body.appendChild(cssLink);