A little Googling may help :) ...but for starters how about: var i = 0; $("li").each(function(){i++;$(this).addClass('image'+i)});
You can change the first selector to whatever is right for you ...probably not every LI on the page :) You can change the word "image" in the addClass() to whatever you want, also. The result would be: <ul> <li class="image1">A</li> <li class="image2">B</li> <li class="image3">C</li> </ul> Though IDs would be more logical than classes if *every* single LI is to have a unique image. Better form. That would amount to: var i = 0; $("li").each(function(){i++;$(this).attr('id','image'+i)}); Creating: <ul> <li id="image1">A</li> <li id="image2">B</li> <li id="image3">C</li> </ul> HTH, Laker On Aug 14, 11:09 am, Stockypotty <andy_stoc...@hotmail.com> wrote: > Right ok, I will search on how to add a class to the menu, do you know > of any tutorials? > > Thanks guys