Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Jquery iframe manipulation

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29052
    yaron
    Member

    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

    #75868
    Tcooper
    Member

    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.