[jQuery] Breadcumb, error in for-loop
Hi!
I'm not an expert in js, maybe you can help me with this one:
var BrCu = here.parents('li').find("a:first");
for (i=3; i=0; i--){
if (BrCU[i] != undefined){
$('#breadcumb span.ins').html('>' + BrCu[i]);
}
};
BrCu gives me what I want. But the for-loop is not writing anything to
the page.
Have I misunderstood something?
var here is current location in a navigation-menu (ul li a ul li a ..)
Thanks!