Anupama Balakrishnan

Monday, 11 September 2017

99.jQuery: Count number of list elements?

<ul id="mylist">
    <li>Element 1</li>
    <li>Element 2</li>
</ul>
var totallicount=jQuery("#mylist li").length;

Posted by anupama balakrishnan at 05:42
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

anupama balakrishnan
View my complete profile

Blog Archive

  • ►  2023 (2)
    • ►  August (1)
    • ►  July (1)
  • ►  2021 (7)
    • ►  October (1)
    • ►  July (3)
    • ►  February (1)
    • ►  January (2)
  • ►  2020 (7)
    • ►  December (3)
    • ►  August (2)
    • ►  January (2)
  • ►  2019 (3)
    • ►  December (1)
    • ►  July (1)
    • ►  April (1)
  • ►  2018 (3)
    • ►  July (3)
  • ▼  2017 (102)
    • ▼  September (6)
      • 102.set date and time to date and time picker
      • 101.jquery split and combine date
      • 100.jquery count of li on mouse over(border on li ...
      • 99.jQuery: Count number of list elements?
      • 98.vertical scroller
      • 97.jQuery modal is not a function error
    • ►  August (17)
    • ►  July (6)
    • ►  June (39)
    • ►  May (33)
    • ►  March (1)
Travel theme. Powered by Blogger.