Loop only top level of li list
Have a ul with x number of li's containing links (a). Some of those li's have nested ul/li sets, and so on. I want the .each to loop only through the top level li's of the parent ul to modify the a.href. Currently it loops though all and finds each a.href all the way down.
using $("ul#classname li a").each but only want the a's in the top level li's.
I may just be having a brainfreeze...