incremental OL using letters (jQuery)

Posted by jquery n00b on Stack Overflow See other posts from Stack Overflow or by jquery n00b
Published on 2010-05-17T02:20:03Z Indexed on 2010/05/17 2:30 UTC
Read the original article Hit count: 275

Filed under:
|
|
|

Hi, I'm trying to dynamically add a span to an ol, where the counter should be in letters. eg: A result B result C result etc etc

I've got this code which is great for using numbers but I've no idea what to do to it to make the numbers into letters

jQuery(document).ready( function() {
    jQuery('.results ol').each(function () {
       jQuery(this).find('li').each(function (i) {
           i = i+1;
           jQuery(this).prepend('<span class="marker">' + i + '</span>');
       });
    });
});

Any help is greatly appreciated!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about list