I am looking to do what the title says. As I am new to client side programming with java script all to together I do not know the "right" and "proper" way of achieveing what I need done.
I wish to use a simple javascript function
var x;
var items = {};
for (x = 0, x < 7; x++) {
items[x] = new num;
}
$("li").addclass("items" + num);
Is this right? Am I on the right track even?