I have some html where I want to add a class to all children except the first child.
with the below js
$(this).addClass("eg_" + (i+1));
see this fiddle
I want every child div of test except the first one to get the class "eg_" + (i+1) and I can't seem to get this working?
I have seen a few similar examples see the eg below but can't quite work it out from this. Where have I gone wrong here?