html lists - jQuery - Find UL of LI -


hey guys wondering whether there way find out unordered list list item in? example have ul id 1 , 1 id 2 , i'd have list items under both unordered list sortable on update want find out unordered list list item has been left in.

how this?

your best bet use closest rather parents in case have nested lists. closest return nearest ancestor matching selector opposed parents return ancestors matching (potentially multiple instead of one).

assuming in case this li:

$(this).closest("ul"); 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -