/* * jQuery :nth-last-child - v0.2 - 2/13/2010 * http://benalman.com/projects/jquery-misc-plugins/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ (function($){var c=/:(nth)-last-child(?:\((even|odd|[\dn+-]*)\))?/,a=$.expr,b=a.filter.CHILD;a[":"]["nth-last-child"]=function(h,g,e,k){var j=e[0].match(c),f=$(h.parentNode).children(),d;j=a.preFilter.CHILD(j);b(h,j);d=f.eq(f.length-h.nodeIndex)[0];return b(d,j)}})(jQuery);