Click here to Skip to main content
15,885,365 members
Articles / Web Development / HTML

jquery All Element of li

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
23 Jan 2013CPOL 3.7K  
<asp:Label ID="Label5"...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
23 Jan 2013fjdiewornncalwe
In this case $('#ui1 li') should do the trick.If you want to loop through the items and process them then $('#ui1 li').each(function(){})
Please Sign up or sign in to vote.
23 Jan 2013Sk. Tajbir
Hi,You can try this as well: $("#ui1").children().each(function () { alert($(this).text());});With jQuery children function you can get any element inside you ul tag.I hope this will help.Thanks :)

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions