/ Published in: jQuery
Grabs the third char in (li a) from first link and append to top of column.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$("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>"); });
URL: http://snipplr.com/view/28918/group-elements-of-ten-lists-items-jquery/