Home > Is Not > Is Not A Function Error

Is Not A Function Error


Slightly out of the question, but I can't resist to write a shorter code to your class assignment: var i = 1; $("ol li").each(function(){ $(this).addClass('olli' + i++); }); share|improve this answer Max no of attachments : 3Loading User Profile... Log in to Reply Unibands says: April 8, 2010 at 6:10 AM …hmm, I just put my code in those code tags and it didn't output, what the?? So Your Code Would Look Like: Of course, you might want to make some changes to your internal code now, but you get the idea.