Thursday, June 12, 2008

Stylize the last element in prototype

posted by Alex Grande
Here is an example of removing the last border in a list of elements.
Event.observe(window, "load", function() {
    $$(".homepageContainer .upcomingEvents").last().setStyle({
        border: 0
    });
});
You can compare to jQuery by going here

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home