Return to Snippet

Revision: 42765
at March 10, 2011 05:56 by vagrantradio


Initial Code
$("ul.ul_wrap").each(function(i) {
  var str = $(this).find("li:first a").text();
  var result = str.charAt(2);
  $(this).prepend("<strong>"+ result + 0 +"</strong>");
});

Initial URL
http://snipplr.com/view/28918/group-elements-of-ten-lists-items-jquery/

Initial Description
Grabs the third char in (li a) from first link and append to top of column.

Initial Title
Prepend Year to Top of Columns

Initial Tags


Initial Language
jQuery