I have a handle on an Un-ordered List (for my example i will call the handle Var1) and would like to be able to assign its last li to a variable. I tried Lastli = var
Lastli = var
Try this: .childNodes[childNodes.length - 1]
.childNodes[childNodes.length - 1]