Grow your CSS skills. Land your dream job.

Jquery iframe manipulation

  • # May 17, 2010 at 5:12 am

    Hi
    I have an iframe and want to change the background color of a specific div inside
    I tried to do the following code:

    Code:
    $(document).ready(function() {

    $(“#frame”).contents().find(“#textwidget”).css(“background-color”,”white”);

    });

    with no luck

    thanks for the help

    yaron

    # May 17, 2010 at 10:00 am

    Going to need a bit more information here, an example URL would be ideal. There’s nothing strictly wrong with the code you have posted, so could do with seeing the rest of the page really.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".