Hello, I have done this successfully in firefox, but I need to do this in IE now, I want to dynamically generate an id for my input elements for an element being created. So far I can't get the id to come out correctly, here is what I have:

var i = 1;
while(i < 10)
{
var rowItem = document.createElement("<input type=text id=['up' + i]>");
tdItem.appendChild(rowItem);
i++;
}

so I would want the id's for my input elements to be up1, up2, up3, up4, etc.

Thanks! That got it working, it works in both IE and Firefox, in Firefox I had to do

var rowItem = document.createElement('input');
rowItem.setAttribute('type', 'text');
rowItem.setAttribute('id', ['item' + l]);
This question has already been answered. Start a new discussion instead.