Re: Adding tr dynamically :: problem with select as innerHTML from td
Why not go with:
Code:
newTD = document.createElement('td');
newSel = document.createElement('select');
newSel.name = 'doorbelasting-' + lastid;
newSel.options[0] = document.createElement('option');
newSel.options[0].value = 'Nee';
newSel.options[0].innerHTML = 'Nee';
newSel.options[1] = document.createElement('option');
newSel.options[1].value = 'Ja';
newSel.options[1].innerHTML = 'Ja';
newTD.appendChild(newSel);
This works in all of my test browsers.
Help from me is always guaranteed!*
VB.NET code is made up on the spot with VS2008 Professional with .NET 3.5. Everything else is just made up on the spot.
Please Remember to rate posts, use code tags, send me money and all the other things listed in the "Before you post" posts.
*Guarantee may not be honoured.