Search, View and Navigation

jQuery

Stylize the last element in jQuery

Attention, open in a new window. PDFPrintE-mail

jQuery - jQuery API

Here is how to stylize the border of the last element using jQuery.
$(function() {
  $(”li:last-child”).addClass(”last”);
});
You can compare to prototype by going here
Comments (1)
.each
1 Monday, 01 June 2009 20:01
Jewelry
I want to know when I am at the last element in the .each() function.

Add your comment

Your name:
Your email:
Your website:
Subject:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:

Additional Information

What is your job title?












Results