Posted By

vagrantradio on 03/10/11


Tagged

prepend


Versions (?)

Prepend Year to Top of Columns


 / Published in: jQuery
 

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

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

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

Report this snippet  

You need to login to post a comment.