How to make multiple items blink that are not yet in the DOM
I have a function called blink:
function blink(strObject) {
$(strObject).fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);
};
I load a lot of new HTML into the DOM with the LOAD function, and then I want some of the DIVs in it to blink on and off for almost a second.
I could do the following:
$("DIV.ContainerPanel > DIV.collapsePanelHeader > DIV.ArrowExpand").each(function() {
blink(this);
})
but it would not work on content loaded via the DOM unless I mix it with the LIVE function.
My question is, how to do that. Is the following correct?
$("DIV.ContainerPanel > DIV.collapsePanelHeader > DIV.ArrowExpand").live(each,function() {
blink(this);
})
Thanks,
Gid