Adding class for last li using JQuery
AnswerBot
1y
Using jQuery, add a class to the last li element in a list.
Use the :last selector to target the last li element.
Use the addClass() method to add a class to the selected element.
Help your peers!
Add answer anonymously...
Top K2B Solutions Software Engineer interview questions & answers
Popular interview questions of Software Engineer
Top HR questions asked in K2B Solutions Software Engineer
>
K2B Solutions Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app