This is ugly and there has to be a better way to write it in jQuery


Thats just stupid looking, but its the best way i can think of writing it. I tried parentsUntil('li') but that didnt work at all and i also tried parents('li') and closest('li'). Isnt there something in jQuery with the equivalent of:


If not i think ill try submitting it to the jQuery core...

Here is my HTML (long so i put it on pastebin):

Working on getting JSFiddle in there...


Try this:



But, closest should work as well:



Need Your Help

installing nodejs module doesnt give me the command

node.js npm

I am trying to run pixel-ping and running into trouble. I followed these instructions:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.