I am trying to create li elements based on the number of values in array. Basically, for every key in an array an li element needs to be created.
<ul class="alpharow">
</ul>
$(".alpharow").each(function() {
var alpha = new Array();
alpha['this'] = ['a', 'b', 'c', 'd', 'e', 'f', 'g'];
alpha['that'] = ['l', 'm', 'n', 'o', 'p', 'q', 'r'];
var n = alpha.length;
for (i = 0; i < n; i++) {
//$("li:eq(" + i + ")");
var li_tag = '<li class="alpha_li"></li>';
}
$(".alpharow").append(li_tag);
//$("span").text("There are " + n + " kys.");
});
So, a, b, c etc...would all have their own <li>
Thanks for the help, let me know if something is not clear.