Thursday, June 12, 2008

Stylize the last element in jQuery

posted by Alex Grande
Here is how to stylize the border of the last element using jQuery.
$(document).ready(function() {
    $("table.innercart tr:last").css("border", "none");
});
You can compare to prototype by going here

Labels: ,

2 Comments:

Blogger Unknown said...

Can be shortened to:

$(function() {
$("table.innercart tr:last").css("border", "none");
});

June 16, 2008 at 4:52 PM  
Blogger Alex Grande said...

This is true if you do not need to load this script before the dom is fully loaded.

August 26, 2008 at 8:54 PM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home