I'm trying to simply this code here:

Is this code:
Code:
$(function(){
for (i = 0; i <= 100; i++) {
$('#thinger').append('<p><span class="thinger">i am thinger ' + i + '</span></p>');
$('#gizmo').append('<p><span class="gizmo">i am gizmo ' + i + '</span></p>');
}
});
This is what i came up with:
Code:
$(function(){
for (i = 0; i <= 100; i++) {

function thingerFunc(){
$("p span").addClass('thinger');
var thingerStr = "I am thinger";
$("p span").text(thingerStr) + i;

var thinger = $("p span");
$("#thinger").after(thinger);
};

function gizmoFunc(){
$("p span").addClass('gizmo');
var gizmoStr = "I am gizmo";
$("p span").text(gizmoStr) + i;

var gizmo = $("p span");
$("#gizmo").after(gizmo);
};

};

});
Any help welcome. Thanks