How can I get this jquery function to work with a div in a different frame?

I have the following:

$('#notice').countDown({
    startNumber: 10,
    callBack: function(me) {
        $(me).text('Logging out now...').css('color','#090');
    }
});

      

Instead of using it in the page the script is on, I would like to use this in another frame, namely the frame named "header"

Any help or direction would be great

+2


source to share


1 answer


Try using ...



$('#notice', parent.frames['header'].document)

      

+1


source







All Articles