Hi Eric,

Another way you could go about this is to continue using the <ol> but hide the numbers through CSS:

ol {
        list-style: none;
}

Then you could prepend the number with the hyphen to each <li>

Inside a document ready, you could do something like this (untested):

$('li').each(function(index) {
        $(this).prepend( (index+1998) + ' - ');
});


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On May 17, 2008, at 2:00 PM, EricC wrote:


Thank you so much for this example. It works quite well on the content
of the <li> but it does not modify the behavior of the <ol> meaning
that period stays. Ah well I thought it was a long shot, I guess I am
going with a table, lol.

Reply via email to