jQuery: Change css in iFrame?!?

I’m trying to make a realtime script which changes some of the css in a page in realtime. I have done this within a parent page but now want to be able to change some values in a iframe with a page in same domain…

This is how I did it within same page:

jQuery("#bodycolor").attachColorPicker();
jQuery("#bodycolor").change(function() {jQuery(document.body).css("background-color",jQuery("#bodycolor").getValue())});

I have done something where I change some divs within my iFrame like this:

jQuery("#mif").contents().find("#strDiv").html(s);

Just dont know how to connect the dods…

Please help and thanks in advance :wink:

Sorry… Found out!

jQuery("#bodycolor").change(function() {jQuery("#mif").contents().find("body").css("background-color",jQuery("#bodycolor").getValue())});