You're not initializing BText. Also, the comparison part of your "for" loop is wrong: should be "i == 0", not "i=0".
On Sat, Sep 26, 2009 at 10:36 AM, Geir <gso...@frisurf.no> wrote: > > Ok, saw one mistake, overwriting the text on each for. > > So, tried this: > var BrCu = here.parents('li').find("a:first"); > var BText; > for (i=3; i=0; i--){ > if (BrCU[i] != undefined){ > BText = BText + '> ' + BrCu[i]; > }} > $('#breadcumb span.ins').html(BText); > > But Firebug tells me BText is undefined.. No text written to my page.. -- Turtle, turtle, on the ground, Pink and shiny, turn around.